ninja

Installing only one target (and its dependencies) out of a complex project with cmake (open to better solutions)

元气小坏坏 提交于 2019-11-28 21:39:00
Let's say I have a project made of several subprojects A, B, C, D... All subprojects depends on A , which changes rather frequently. Plus, there might be some further dependencies: in this example, D depends on B . Now: many people are working on these projects. The main CMakeLists.txt file should include all directories, so that the build all builds everything. But people would like also to be able to work only on one of these projects, and not having to build/install everything everytime. If I am working on D, I can easily build "only" D by calling cmake --build . --target D -- -j7 or ninja

Building with CMake, Ninja and Clang on Windows

ぃ、小莉子 提交于 2019-11-28 20:25:20
问题 Dear fellow C++ coders, after using the Visual Studio toolchain for building on windows for a while, I decided to give Clang 5 a shot. I installed the LLVM 5.0.0 binaries, the Ninja build environment, the VS 2017 Tools and CMake 3.9.3. The final aim is to be able to compile C and C++ applications for Windows using VS Code with the CMake integration as "IDE" and Clang with LLD as compiler and linker. The compilation and execution of a simple program worked perfectly fine (screenshot of the

CMake/Ninja attempting to compile deleted `.cpp` file

江枫思渺然 提交于 2019-11-28 14:04:07
I've found that when I delete cpp files from my project using cmake and ninja , I can't easily compile it without first completely deleting my build directory and starting from scratch. CMake and/or Ninja apparently squirrels away a number of references to all the cpp files that it compiles, even deleting the CMake cache before re-running CMake doesn't remove all the references. Is this a known issue? Is there a solution? I've occasionally just run rm $(grep -R <filename> <builddir>) , but that's a terrible kludge. EDIT: It appears I was mistaken, as I have not been able to duplicate this

Google Chrome - How to compile Google Chrome in Windows?

北城余情 提交于 2019-11-28 13:00:06
Documentation mentioned to compile i have to follow this instruction for Windows: http://www.chromium.org/developers/how-tos/build-instructions-windows So i did all the steps, but the following is failing how can i resolve it? C:\tpt\depot_tools>mkdir out\Debug C:\tpt\depot_tools>ninja -C out\Debug chrome ninja: error: loading 'build.ninja': Het systeem kan het opgegeven bestand niet vinden. ninja: Entering directory `out\Debug' DONE. Windows 8.1 Pro 64-bit. Visual Studio 2013 Community edition Install git https://git-scm.com/download/win Step 1: C:\>mkdir folder C:\>cd folder C:\>unzip https:

WebRTC : ninja build not working

老子叫甜甜 提交于 2019-11-28 02:35:39
问题 Steps I followed for build of webRTC in UBUNTU env. Check out the code: gclient config https://webrtc.googlecode.com/svn/trunk echo "target_os = ['android', 'unix']" >> .gclient gclient sync --nohooks Generate ninja makefiles: cd trunk $./build/install-build-deps-android.sh $. build/android/envsetup.sh Defaulting GYP_GENERATORS to ninja $gclient runhooks $android_gyp result of android_gyp: GYP_GENERATORS set to 'ninja' Updating projects from gyp files... gyp: /home/user/webRTC/trunk/chrome

Getting cmake to run before building after pulling from git

核能气质少年 提交于 2019-11-28 01:39:22
There is this project kept in a git repository, which we build with cmake and ninja. We are using globbing expressions/functions to collect all the source files to be compiled. That means that every time a file is added/removed, cmake has to be called to re-parse the directories. We have seen this is bringing some time loss when somebody pulls after somebody has pushed some new file, without modifications to any of the cmake files. I say this last thing because a modification to any of the cmake files would trigger a call to cmake (by ninja), and everything would be fine. How can I obtain that

Google Chrome - How to compile Google Chrome in Windows?

笑着哭i 提交于 2019-11-27 19:27:08
问题 Documentation mentioned to compile i have to follow this instruction for Windows: http://www.chromium.org/developers/how-tos/build-instructions-windows So i did all the steps, but the following is failing how can i resolve it? C:\tpt\depot_tools>mkdir out\Debug C:\tpt\depot_tools>ninja -C out\Debug chrome ninja: error: loading 'build.ninja': Het systeem kan het opgegeven bestand niet vinden. ninja: Entering directory `out\Debug' 回答1: DONE. Windows 8.1 Pro 64-bit. Visual Studio 2013 Community

CMake/Ninja attempting to compile deleted `.cpp` file

允我心安 提交于 2019-11-27 08:09:26
问题 I've found that when I delete cpp files from my project using cmake and ninja , I can't easily compile it without first completely deleting my build directory and starting from scratch. CMake and/or Ninja apparently squirrels away a number of references to all the cpp files that it compiles, even deleting the CMake cache before re-running CMake doesn't remove all the references. Is this a known issue? Is there a solution? I've occasionally just run rm $(grep -R <filename> <builddir>) , but

Android Studio CMake/Ninja Not Used for Building an NDK project

谁说胖子不能爱 提交于 2019-11-27 04:39:10
问题 I have the following CMAKE & Ninja installed through Android Studio's SDK Tools: ~/Library/Android/sdk/cmake/3.10.2.4988404/bin/ninja --version 1.8.2 I run into "Error Configuring" while trying to build my project. Here is the build output: Executable : /Users/ssk/Library/Android/sdk/cmake/3.10.2.4988404/bin/cmake arguments : -H/Users/ssk/MyProject -B/Users/ssk/MyProject/.externalNativeBuild/cmake/debug/armeabi-v7a -DANDROID_ABI=armeabi-v7a -DANDROID_PLATFORM=android-16 -DCMAKE_LIBRARY_OUTPUT

Getting cmake to run before building after pulling from git

泪湿孤枕 提交于 2019-11-26 21:59:10
问题 There is this project kept in a git repository, which we build with cmake and ninja. We are using globbing expressions/functions to collect all the source files to be compiled. That means that every time a file is added/removed, cmake has to be called to re-parse the directories. We have seen this is bringing some time loss when somebody pulls after somebody has pushed some new file, without modifications to any of the cmake files. I say this last thing because a modification to any of the