[vlc-commits] contrib/bghudappkit: don't use AppKit.h as a pre-compile header

Felix Paul Kühne git at videolan.org
Thu Jul 14 14:32:46 CEST 2016


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Thu Jul 14 14:32:32 2016 +0200| [8146d9414cc601a699915af63ec569670ac84278] | committer: Felix Paul Kühne

contrib/bghudappkit: don't use AppKit.h as a pre-compile header

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8146d9414cc601a699915af63ec569670ac84278
---

 contrib/src/bghudappkit/bghudappkit-no-pch.patch |   30 ++++++++++++++++++++++
 contrib/src/bghudappkit/rules.mak                |    3 ++-
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/contrib/src/bghudappkit/bghudappkit-no-pch.patch b/contrib/src/bghudappkit/bghudappkit-no-pch.patch
new file mode 100644
index 0000000..0c95ab2
--- /dev/null
+++ b/contrib/src/bghudappkit/bghudappkit-no-pch.patch
@@ -0,0 +1,30 @@
+diff -ru bghudappkit/BGHUDAppKit.xcodeproj/project.pbxproj bghudappkit/BGHUDAppKit.xcodeproj/project.pbxproj
+--- bghudappkit/BGHUDAppKit.xcodeproj/project.pbxproj	2016-07-14 14:29:53.000000000 +0200
++++ bghudappkit/BGHUDAppKit.xcodeproj/project.pbxproj	2016-07-14 14:28:54.000000000 +0200
+@@ -1076,8 +1076,6 @@
+ 				FRAMEWORK_VERSION = A;
+ 				GCC_ENABLE_OBJC_GC = disabled;
+ 				GCC_MODEL_TUNING = G5;
+-				GCC_PRECOMPILE_PREFIX_HEADER = YES;
+-				GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
+ 				INFOPLIST_FILE = "BGHUDAppKitFramework-Info.plist";
+ 				INSTALL_PATH = "@executable_path/../Frameworks";
+ 				LD_DYLIB_INSTALL_NAME = "$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)";
+@@ -1105,8 +1103,6 @@
+ 				GCC_ENABLE_OBJC_GC = disabled;
+ 				GCC_MODEL_TUNING = G5;
+ 				GCC_OPTIMIZATION_LEVEL = 0;
+-				GCC_PRECOMPILE_PREFIX_HEADER = YES;
+-				GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
+ 				GCC_TREAT_IMPLICIT_FUNCTION_DECLARATIONS_AS_ERRORS = NO;
+ 				GCC_TREAT_NONCONFORMANT_CODE_ERRORS_AS_WARNINGS = NO;
+ 				GCC_WARN_64_TO_32_BIT_CONVERSION = NO;
+@@ -1149,8 +1145,6 @@
+ 				FRAMEWORK_VERSION = A;
+ 				GCC_ENABLE_OBJC_GC = disabled;
+ 				GCC_MODEL_TUNING = G5;
+-				GCC_PRECOMPILE_PREFIX_HEADER = YES;
+-				GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/AppKit.framework/Headers/AppKit.h";
+ 				INFOPLIST_FILE = "BGHUDAppKitFramework-Info.plist";
+ 				INSTALL_PATH = "@executable_path/../Frameworks";
+ 				LD_DYLIB_INSTALL_NAME = "$(DYLIB_INSTALL_NAME_BASE:standardizepath)/$(EXECUTABLE_PATH)";
diff --git a/contrib/src/bghudappkit/rules.mak b/contrib/src/bghudappkit/rules.mak
index 6625eaa..19f0639 100644
--- a/contrib/src/bghudappkit/rules.mak
+++ b/contrib/src/bghudappkit/rules.mak
@@ -18,10 +18,11 @@ $(TARBALLS)/bghudappkit-git.tar.xz:
 bghudappkit: bghudappkit-git.tar.xz .sum-bghudappkit
 	$(UNPACK)
 	$(APPLY) $(SRC)/bghudappkit/bghudappkit-xcode5.patch
+	$(APPLY) $(SRC)/bghudappkit/bghudappkit-no-pch.patch
 	$(MOVE)
 
 .bghudappkit: bghudappkit
-	cd $< && xcodebuild $(XCODE_FLAGS)
+	cd $< && xcodebuild -target BGHUDAppKit $(XCODE_FLAGS)
 	install -d $(PREFIX)
 	cd $< && cp -Rf build/Release/BGHUDAppKit.framework "$(PREFIX)"
 	touch $@



More information about the vlc-commits mailing list