summaryrefslogtreecommitdiffstats
path: root/build/qmake/mkspecs/features/gyp_generator.prf
diff options
context:
space:
mode:
authorChris Hutten-Czapski <chutten@blackberry.com>2013-10-09 10:42:35 -0400
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-29 16:26:57 +0100
commitf21cb5bc6fca478541d804d24ca0b60a96d82e8f (patch)
tree66922b25198677290112d735f7ec131a586283aa /build/qmake/mkspecs/features/gyp_generator.prf
parenteabac4c9ca887b86bcebbfd2d2afd77ed8cc1a6a (diff)
QtWebEngine Dev Tools (Web Inspector)
To implement the Web Inspector we need a delegate to handle the http server and devtools connections, a landing page, a ContentClient to tell the devtools server where to find its frontend resources, those frontend resources, and an API for embedders to turn on inspectability in WebEngineViews. The frontend resources are build by the chromium build and are copied over as part of lib's build. The landing page was taken directly from content_shell. This should be replaced by either a new one for all QtWebEngine embedders or by a mechanism for embedders to supply their own (or both). Change-Id: Id4076d5ede34a91abf8dba443aed4dca4be1b3e5 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'build/qmake/mkspecs/features/gyp_generator.prf')
-rw-r--r--build/qmake/mkspecs/features/gyp_generator.prf20
1 files changed, 17 insertions, 3 deletions
diff --git a/build/qmake/mkspecs/features/gyp_generator.prf b/build/qmake/mkspecs/features/gyp_generator.prf
index d75372d10..768fe43d4 100644
--- a/build/qmake/mkspecs/features/gyp_generator.prf
+++ b/build/qmake/mkspecs/features/gyp_generator.prf
@@ -167,13 +167,27 @@ GYP_CONTENTS += " ],"
GYP_CONTENTS += " ],"
}
-# Generate the actions for moc
+# Some needed files (like devtools_resources.pak) are both _generated_ as part of the build process and are _needed_ as part of the build process.
+!isEmpty(COPY_FILES) {
+ GYP_CONTENTS += " 'copies': ["
+ for (index, 0..$$size(COPY_FILES)) {
+ copyFile = $$member(COPY_FILES, $$index)
+ !isEmpty(copyFile) {
+ copyDestination = $$member(COPY_DESTINATIONS, $$index)
+ GYP_CONTENTS += " {'destination': '$$copyDestination', 'files': ['$$copyFile']},"
+ }
+ }
+ GYP_CONTENTS += " ],"
+}
+
+# Generate the actions for moc, copy
GYP_CONTENTS += " 'actions': ["
for(resourcefile, RESOURCES): GYP_CONTENTS += $$rccAction($$resourcefile)
for(header, MOCABLE_HEADERS): GYP_CONTENTS += $$mocAction($$header)
GYP_CONTENTS += " ]," \
- " }," \
- " ]," \
+ " },"
+
+GYP_CONTENTS += " ]," \
"}"
write_file($$GYPI_FILE, GYP_CONTENTS)