diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2013-04-19 11:07:15 +0200 |
---|---|---|
committer | Pierre Rossi <pierre.rossi@digia.com> | 2013-04-29 14:05:05 +0200 |
commit | 3300873bba24594e4773d0e0a127d33a5a0f303c (patch) | |
tree | f780ce65de01b46635d08c0c5d61615ac6da9130 /build/build.pro | |
parent | 5067310342ac2d2b7004ed7d036bda6e3015f7d7 (diff) |
New qmake approach
This should allow us to have much better integration by generating the necessary gyp
files directly from qmake.
Mostly works for now, though we will most likely need to build the gyp generation
as we go.
* Out dir logic is still crap and needs to be (re)worked.
* In the same vein, we probably don't want the generated gyp
content ending up in the source tree in the long run, which could prove tricky
with relative paths to sources and all.
Diffstat (limited to 'build/build.pro')
-rw-r--r-- | build/build.pro | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/build/build.pro b/build/build.pro new file mode 100644 index 000000000..279823371 --- /dev/null +++ b/build/build.pro @@ -0,0 +1,25 @@ +# This .pro file serves a dual purpose: +# 1) invoking gyp through the gyp_blinq script, which in turn makes use of the generated gypi include files +# 2) produce a Makefile that will run ninja, and take care of actually building everything. + +TEMPLATE = aux + +# Fetched from environment for now +CHROMIUM_SRC_DIR = $$(CHROMIUM_SRC_DIR) +isEmpty(CHROMIUM_SRC_DIR):error("please set CHOMIUM_SRC_DIR") + +message(Running Gyp...) +GYP_OUTPUT = $$system(./gyp_blinq) +message($$GYP_OUTPUT) + +ninja.target = ninja +# FIXME: Don't hardcode Release... might be tricky to get right if we also don't want to hardcode 'out' +ninja.commands = $$CHROMIUM_SRC_DIR/../depot_tools/ninja -C $$BLINQ_ROOT/out/Release +ninja.depends: qmake +QMAKE_EXTRA_TARGETS += ninja + +build_pass:build_all:default_target.target = all +else: default_target.target = first +default_target.depends = ninja + +QMAKE_EXTRA_TARGETS += default_target |