3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #40187 from matthewbauer/disable-framework-for-qt

Disable installing frameworks for qt
This commit is contained in:
Matthew Justin Bauer 2018-05-08 22:55:12 +00:00 committed by GitHub
commit 03308d1298
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 30 deletions

View file

@ -37,9 +37,7 @@ let
srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; };
patches = {
qtbase = [ ./qtbase.patch ] ++
optionals stdenv.isDarwin [ ./qtbase-darwin.patch
./restore-pc-files.patch ];
qtbase = [ ./qtbase.patch ./qtbase-darwin.patch ];
qtdeclarative = [ ./qtdeclarative.patch ];
qtscript = [ ./qtscript.patch ];
qtserialport = [ ./qtserialport.patch ];

View file

@ -1,27 +0,0 @@
diff --git a/mkspecs/features/qt_module.prf b/mkspecs/features/qt_module.prf
index e6a0d97f1a..b50ce77d51 100644
--- a/mkspecs/features/qt_module.prf
+++ b/mkspecs/features/qt_module.prf
@@ -266,7 +266,7 @@ load(qt_installs)
load(qt_targets)
# this builds on top of qt_common
-!internal_module:!lib_bundle:if(unix|mingw) {
+!internal_module:if(unix|mingw) {
CONFIG += create_pc
QMAKE_PKGCONFIG_DESTDIR = pkgconfig
host_build: \
diff --git a/mkspecs/features/qt_module_headers.prf b/mkspecs/features/qt_module_headers.prf
index 62b88c6fe2..f302f1e202 100644
--- a/mkspecs/features/qt_module_headers.prf
+++ b/mkspecs/features/qt_module_headers.prf
@@ -102,8 +102,7 @@ git_build: \
else: \
INC_PATH = $$MODULE_BASE_INDIR
include($$INC_PATH/include/$$MODULE_INCNAME/headers.pri, "", true)
-!lib_bundle: \ # Headers are embedded into the bundle, so don't install them separately.
- CONFIG += qt_install_headers
+CONFIG += qt_install_headers
alien_syncqt: return()

View file

@ -16,6 +16,9 @@ let
optional (!debug) "-DQT_NO_DEBUG"
++ lib.toList (args.NIX_CFLAGS_COMPILE or []);
configureFlags = [ "-no-framework" ]
++ (args.configureFlags or []);
cmakeFlags =
(args.cmakeFlags or [])
++ [