I using gn for generating ninja files, and ninja to build them, but I cannot achieve one thing in specific I want to copy/move my builded libs to given path.
In gn doku I found things as output_dir or copy but using them I can only place libs inside gn building directory, but I want to place them outside of that directory. Any knows how to specify this directory without any limitations ?
Specifying install/output dir for lib and executables generated by gn/ninja
289 views Asked by AnDevi At
1
There are 1 answers
Related Questions in BUILD
- Ionic cordova build
- Force GHC using local files
- RPM spec files with rpmbuild can have errors
- (automake, libtool) build fails in automake when using same source file name in different directory
- Backup strategy for build tool hosted on Azure VM
- include typescript file in output result build with TFS
- Android Build failed at ':app:dexDebug' with exception ( library and app project )
- GNU make - depend only on file existence and not modification time
- Error code 31 returned from mt.exe when building C++ projects in Visual Studio 2013
- IONIC FRAMEWORK Build Xcode Error :(
- Jenkins - Stage before "Source Code Management"
- Python: Trouble with dill installation
- Execution failed for task 'app:mergeDebugResources' Crunching Cruncher....png failed
- Android: Execution failed for task ':app:processDebugResources'
- Change assets urls to cdn adding absolute path in Grunt
Related Questions in NINJA
- Google Chrome - How to compile Google Chrome in Windows?
- CMake/Ninja attempting to compile deleted `.cpp` file
- Challenge - Ninjascript C# interface with a C++ dll
- webRTC compilation windows 7 64 bit
- Missing 'libaudiopolicyservice_intermediates" when trying to compile AOSP 7.1.1 release 6?
- Using a separate build directory with Gyp and Ninja
- jQuery and Ninja Forms WordPress Plugin
- Ninja: install target
- Build Chromium webui test without rebuilding all browser_tests
- Quickfix list in vim when working with ninja and clang++
- Building content shell as final and sharing
- clang-tidy can't find the target's public headers
- How-to use an existing CMakeCache.txt for the "Ninja Multi-Config" generator in Microsoft Visual Studio 2019?
- What is the proper way to handle `CMAKE_INSTALL_PREFIX` when using the Ninja Multi-Config cmake generator?
- Can't link to iconv on OS X
Related Questions in LIBS
- CLion: Issues Integrating graphics.h
- Android | Allow different libs version in the same project
- Gradle not finding Jar in libs folder after updating *.jar file
- How to detect macOS version?
- Specifying install/output dir for lib and executables generated by gn/ninja
- NX: How to build all libraries belonging to a grouping folder
- Android Studio - Lib Folder not showing up (libs/ lib)?
- No libs and no main.dart file in New Flutter Project on Android Studio
- .so libraries in Android Studio
- Solving libjscexecutor.so error appearing in Crashlytics
- golang with imported c lib problems
- lib for custom password input with type text
- How can I resolve this issue: libm.so.6: version `GLIBC_2.29' not found, C/C++?
- How to add external cpp libs to cmake project and pass to linker
- How to install folder packages to local venv from another local venv
Related Questions in GN
- Chromium android runtime issue
- Add a new png file to views_examples_resources.grd
- How can I fix chromium build gclient error?
- skia failed to follow build instructions
- `gn gen` gives `ERROR Need exactly one build directory to generate`
- How do I safely distribute a ninja component build?
- Coverage parameters of the clang code coverage function change the code logic?
- Regarding the issue of compiling WebRTC using VS
- Chromium build with ninja failed in ubuntu22.04
- Linux setup issue with starboard for Cobalt
- BUILD.gn: how to add all .c files in one directory into sources
- GN not Working When Trying To Make Chromium
- Specifying install/output dir for lib and executables generated by gn/ninja
- Issues with building Google V8 versions 10.x/11.x with Visual Studio 2019 (9.x is ok)
- chromium build error gn gen out/Default in Ubuntu
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
What you're talking about sounds a little like an "install" step, to move files around to places you want them after your build has fully completed.
Sorry to say it, but you can't do that from inside of GN and have GN know about it. GN is an "out-of-source" build system and you've discovered one of its core constraints: GN refuses to let you create target outputs outside of your build root.
You do have a few options, though-
out/dbg,out/rel, etc, and each one is a separate GN configuration. Inside of each root we have abindirectory:out/dbg/bin,out/rel/bin, and that's where we tell GN to put final binaries.For a while, we did #1, but in the end it was less friction to go to #3. If I absolutely needed to do it, though, I'd probably explore #2. At least that way the copy-out action is managed by GN + Ninja and dirty/clean is managed by ninja and your proxy timestamp file.