Jussi Pakkanen
b5c7cca0dc
Works when mixing Java and C.
9 years ago
Jussi Pakkanen
de03ae5af0
Fix mesonintrospect.
9 years ago
Jussi Pakkanen
8b6848ebc3
Add dir support for find_library and remove deprecated standalone version. Closes #450 .
9 years ago
Nicolas Schneider
147b7aa356
vs2010: add explicit objects as 'Object' ItemGroup instead of link dependency
...
This has two effects:
1. It makes targets with only object files work (test case 88).
2. It adds the object files to the project in the VS IDE.
9 years ago
Nicolas Schneider
d72cc6e6f8
vs2010: fix object extraction
...
1. Dependencies must be set up with the target's id instead of its
basename.
2. Extracted object output file names must not include the directory
prefix, because MSBuild puts all object files into the same directory
and names them srcfilename.obj instead of dir/filename.obj or
dir_filename.obj.
9 years ago
Nirbheek Chauhan
11f63105d0
New builtin option: libexecdir for installation of helper executables
9 years ago
Nirbheek Chauhan
d5c9b98cab
meson_install.py: Start by checking if the shebang is directly runnable
...
If it's just runnable as-is, then we don't need to do fancy basename detection
and such to find the interpretor to use for running the script.
9 years ago
Jussi Pakkanen
19046fd854
Added new base options and some sample opts for gcc.
9 years ago
Nicolas Schneider
4d9db21039
vs2010: fix dependencies of CustomTarget
9 years ago
Nicolas Schneider
3871f22cc3
remove unnecessary os.path.join() calls
...
ofilenames and srcs are already absolute paths.
9 years ago
Nicolas Schneider
e067c4a79d
fix eval_custom_target_command() to use absolute paths for output files
9 years ago
Nicolas Schneider
2761f96fe9
vs2010: give each target an own temp dir
...
The 'Rebuild' target fails in mysterious ways if multiple targets use
the same directories because of output files being deleted between two
build steps (e.g. test case 78 fails on Rebuild, whereas Clean + Build
work just fine).
9 years ago
Nicolas Schneider
2511ff0970
check is_header() first, since it is a subset of is_source()
9 years ago
Nicolas Schneider
1f907e75da
add everything that is not an object or source file to headers list
9 years ago
Nicolas Schneider
c72cefaac4
only include known source file extensions into sources list
9 years ago
Nicolas Schneider
baa639031b
not all dependencies have a compile_args attribute
9 years ago
Nicolas Schneider
e366631e9e
don't fail if we don't compile anything (we might just bundle object files)
9 years ago
Nicolas Schneider
5503939866
only guess language for source files, not for header or object files
9 years ago
Nicolas Schneider
8eac78b861
vs2010: support language specific extra_args
9 years ago
Jussi Pakkanen
304c0d2cb5
Updated version number for new development.
9 years ago
Jussi Pakkanen
4e94a07f6e
Bump version number for release.
9 years ago
Jussi Pakkanen
9c5bda3f40
Return array by value so it does not get modified.
9 years ago
Jussi Pakkanen
6b548a1c75
Added find_library method and deprecated the standalone version. Closes #396 .
9 years ago
Tim-Philipp Müller
3c8468cd4d
Add string underscorify() function
...
So we can easily construct the defines for include headers and
struct checks and such.
9 years ago
Tim-Philipp Müller
02e84df010
Add more string functions: contains(), to_upper() and to_lower()
9 years ago
Nicolas Schneider
17f1323aca
vs2010: fix linker args
9 years ago
Tim-Philipp Müller
48a2b201ea
config file: write commented undef lines same as autoconf
...
For easier diffing to see if anything is missing when porting.
9 years ago
Nicolas Schneider
49418cfe8a
vs2010: support multiple precompiled headers (one per language)
...
This creates the PrecompiledHeader properties for every source file in the
project if multiple languages are present. Otherwise, the global pch
settings are used.
The pch to use is determined by checking the suffix of the source file.
9 years ago
Nicolas Schneider
5ba7680a0d
vs2010: fail on multiple precompiled headers
9 years ago
Nicolas Schneider
18ae344be4
vs2010: support precompiled headers
9 years ago
Jussi Pakkanen
79537b54db
Implicit include directories go first.
9 years ago
Nicolas Schneider
749aeefe0c
pass meson source and build dirs as env variables for postconf scripts
9 years ago
Nicolas Schneider
5e1fdb8b97
use positional instead of keyword args for add_postconf_script
9 years ago
Nicolas Schneider
9f9f73fa52
add args support for add_postconf_script
9 years ago
Nicolas Schneider
92187501ed
Can add postconfigure script.
9 years ago
Jussi Pakkanen
52b66edb6c
Can specify compile and link args for internal deps.
9 years ago
Jussi Pakkanen
352b5badd2
Handle resources that come in files(). Closes #424 .
9 years ago
Jussi Pakkanen
2d32c39471
Handle built targets in custom rules. Closes #411 .
9 years ago
Jussi Pakkanen
c6138fe8bd
.ipp is a C++ header suffix.
9 years ago
Nicolas Schneider
40a7287a59
vs2010: properly check whether solution needs to be regenerated
9 years ago
Nicolas Schneider
ac5ee0c414
dump coredata to file before calling backend.generate()
...
This ensures that all build files always have a later timestamp than
coredata.dat, which is used to check if the build files must be
regenerated.
9 years ago
Nicolas Schneider
bffc84e77e
vs2010: write regen.rule in gen_regenproj
9 years ago
Nicolas Schneider
4651ec8f77
vs2010: fix REGEN project input files
9 years ago
Rogiel Sulzbach
f98dc48a8d
Fix Xcode backend
...
This makes the following changes:
* Explicitly closes the file for force flushing (this fixes an issue on which the last 2 or 3 lines weren't being written to disk)
* Adds another check on the PBXBuildFile stage to get the file name if the returned source type is a File instead of a string
Fixes issue #337
9 years ago
Nicolas Schneider
c5001a3a5a
call os.path.normpath before splitting a file path into its components
...
This makes sure that any '/' are converted to native directory separators
on Windows.
9 years ago
Minijackson
3b688c6114
Create directories of unity temporary files
9 years ago
Nicolas Schneider
6de2fd6ab5
vs2010: fix target_to_build_root method
...
Python's os.path.split() does not split the path into its components.
Instead, split the path with str.split() using the OS's file system
separator.
9 years ago
Nicolas Schneider
78551ae242
vs2010: do not add generated object files to project
...
MSBuild automatically includes the output objects of the CustomBuildStep
in the link command. If the objects are additionally added to the project,
they will be put twice on the linker command, which leads to LNK4042
warning.
9 years ago
Nicolas Schneider
2dcac38624
vs2010: write CustomBuildStep only if there is at least 1 command to be run
9 years ago
Nicolas Schneider
ed6c0e1fa6
vs2010: merge all generators into single command invocation
...
MSBuild does not allow multiple CustomBuildStep elements. Therefore, all
input / output files and generator commands must be concatenated and put
into a single CustomBuildStep.
9 years ago