Skip to content

Commit

Permalink
Add portable configuration (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewtff authored and abyss7 committed Aug 16, 2017
1 parent 9755135 commit ef147df
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 10 deletions.
22 changes: 12 additions & 10 deletions build/config/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,18 @@ config("release") {

defines = [ "NDEBUG" ]

if (host_os == "linux") {
ldflags = [
"-rpath",
"/usr/lib/dist-clang",
]
} else {
ldflags = [
"-rpath",
"/usr/local/lib/dist-clang",
]
if (!portable_build) {
if (host_os == "linux") {
ldflags = [
"-rpath",
"/usr/lib/dist-clang",
]
} else {
ldflags = [
"-rpath",
"/usr/local/lib/dist-clang",
]
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions build/config/BUILDCONFIG.gn
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ declare_args() {
# Build for testing.
config_for_tests = false

# Portable build
portable_build = false

# Build version.
version = exec_script("//build/version.py", [], "string")

Expand Down
1 change: 1 addition & 0 deletions build/configure
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ gn_path=$gn_path/gn

"$gn_path" --check --args="config_for_debug=true $@" gen //out/Debug.gn
"$gn_path" --check --args="$@" gen //out/Release.gn
"$gn_path" --check --args="portable_build=true $@" gen //out/Portable.gn
"$gn_path" --check --args="config_for_tests=true $@" gen //out/Test.gn
1 change: 1 addition & 0 deletions build/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export PATH="$clang_root/bin:$PATH"
git -C "$root_dir" fetch origin master
ninja -C "$root_dir/out/Debug.gn" All
ninja -C "$root_dir/out/Release.gn" All # TODO: also build 'Packages'
ninja -C "$root_dir/out/Portable.gn" All
ninja -C "$root_dir/out/Test.gn" Tests

"$root_dir/build/run_all_tests" --test-launcher-bot-mode

0 comments on commit ef147df

Please sign in to comment.