BUILD.gn 830 B

1234567891011121314151617181920212223242526
  1. config("build_time_executable") {
  2. configs = []
  3. if (is_electron_build && !is_component_build) {
  4. # The executables which have this config applied are dependent on ffmpeg,
  5. # which is always a shared library in an Electron build. However, in the
  6. # non-component build, executables don't have rpath set to search for
  7. # libraries in the executable's directory, so ffmpeg cannot be found. So
  8. # let's make sure rpath is set here.
  9. # See '//build/config/gcc/BUILD.gn' for details on the rpath setting.
  10. if (is_linux) {
  11. configs += [ "//build/config/gcc:rpath_for_built_shared_libraries" ]
  12. }
  13. if (is_mac) {
  14. ldflags = [ "-Wl,-rpath,@loader_path/." ]
  15. }
  16. }
  17. }
  18. # For MAS build, we force defining "MAS_BUILD".
  19. config("mas_build") {
  20. if (is_mas_build) {
  21. defines = [ "MAS_BUILD" ]
  22. }
  23. }