mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 06:28:55 +02:00
new recipe: powder-toy (#848)
This commit is contained in:
committed by
waddlesplash
parent
1061d46735
commit
cbb0239967
@@ -0,0 +1,54 @@
|
||||
From 7840aa9c4f2f758f3321104450924f8e25093518 Mon Sep 17 00:00:00 2001
|
||||
From: Calvin Hill <calvin@hakobaito.co.uk>
|
||||
Date: Sun, 30 Oct 2016 20:43:50 +0000
|
||||
Subject: [PATCH] Added Haiku target
|
||||
|
||||
---
|
||||
SConscript | 11 +++++++++--
|
||||
1 file changed, 9 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/SConscript b/SConscript
|
||||
index 97ac57d..bca80eb 100644
|
||||
--- a/SConscript
|
||||
+++ b/SConscript
|
||||
@@ -41,6 +41,7 @@ def AddSconsOption(name, default, hasArgs, help):
|
||||
AddSconsOption('win', False, False, "Target Windows.")
|
||||
AddSconsOption('lin', False, False, "Target Linux.")
|
||||
AddSconsOption('mac', False, False, "Target Mac OS X.")
|
||||
+AddSconsOption('haiku', False, False, "Target Haiku.")
|
||||
AddSconsOption('msvc', False, False, "Use the Microsoft Visual Studio compiler.")
|
||||
AddSconsOption("tool", False, True, "Tool prefix appended before gcc/g++.")
|
||||
|
||||
@@ -87,8 +88,10 @@ elif GetOption('lin'):
|
||||
platform = "Linux"
|
||||
elif GetOption('mac'):
|
||||
platform = "Darwin"
|
||||
-elif compilePlatform not in ["Linux", "Windows", "Darwin"]:
|
||||
- FatalError("Unknown platform: {0}".format(platform))
|
||||
+elif GetOption('haiku'):
|
||||
+ platform = "Linux"
|
||||
+#elif compilePlatform not in ["Linux", "Windows", "Darwin"]:
|
||||
+# FatalError("Unknown platform: {0}".format(platform))
|
||||
|
||||
msvc = GetOption('msvc')
|
||||
if msvc and platform != "Windows":
|
||||
@@ -416,6 +419,9 @@ elif platform == "Linux":
|
||||
elif platform == "Darwin":
|
||||
env.Append(CPPDEFINES=['MACOSX'])
|
||||
#env.Append(LINKFLAGS=['-headerpad_max_install_names']) #needed in some cross compiles
|
||||
+elif platform == "Haiku":
|
||||
+ env.Append(LINKFLAGS=['-lroot'])
|
||||
+ env.Append(LINKFLAGS=['-lnetwork'])
|
||||
|
||||
|
||||
#Add architecture flags and defines
|
||||
@@ -503,6 +509,7 @@ elif GetOption("no-warnings"):
|
||||
env.Append(CCFLAGS=['-w'])
|
||||
|
||||
|
||||
+
|
||||
#Add version defines
|
||||
if GetOption('save-version'):
|
||||
env.Append(CPPDEFINES=["SAVE_VERSION={0}".format(GetOption('save-version'))])
|
||||
--
|
||||
2.7.4
|
||||
Reference in New Issue
Block a user