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 best solutions below
Related Questions in BUILD
- Build issue in my STM32-NUCLEO project using the Eclipse IDE
- Module not found when building flutter app for IOS
- Why am I getting this error ? error CS0103: The name 'EnhancedStackTrace' does not exist in the current context
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- Build LLVM, Clang and Libfuzzer
- when I open a ktor project, error Cannot invoke "java.nio.file.Path.toString()" because the return value of "java.nio.file.Path.getFileName()" is null
- Cannot make Django run the frontend from Vite's build ("was blocked because of a disallowed MIME type (“text/html”)")
- Distorted CSS after Build process
- how to build nextjs app unable to build and deploy
- How to build custom mediapipe python model i.e. adding flow_limiter_calculator to face_landmark_front_cpu.binarypb
- Assets not showing after build process in Vite and React
- "Config.guess failed to determine the host type" when trying build binutils-2.7 with Cygwin
- The assembled Python application does not launch
- Why rebuild module does not recompile dependency module, but build module does in IntelliJ Idea?
- Gitlab pipeline stuck with nx cloud issue
Related Questions in NINJA
- HTML Not Rendering and Displaying as Plain Text on Frontend with Ninja Forms in WordPress
- New to llvm - trying to make the files but getting collect2: fatal error
- Empty generated qrc files on Raspberry Pi
- Cmake try to find Ninja in a wrong environment of msys2
- ESP-IDF Compile error while Building CXX object file. ninja: build stopped: subcommand failed
- CMake and Ninja - Problems with dollar sign in custom command
- Compiling latex file which depends on several file with ninja build system
- Conditionally execute statements depending on build type in CMake
- acp: missing destination file in target file generation for ota generation using make dist
- A ninja failed related error occurs during the build of the OTA package
- Failed to build chromium, ValueError: path is on mount '\\\\tab_group_types.mojom-webui.js'
- Clang-16 compiler segmentation fault
- ninja -C out/Release-x64 skia modules errors, "" needed by "", missing
- WSL: Perl-Script executed from Ninja doesn't find file path even though it exists
- How to Force specific MSVC Version in Python Setuptools with Ninja?
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
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)
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?
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.