aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2019-09-11 11:52:30 -0400
committerJosh Matthews <josh@joshmatthews.net>2019-09-16 13:03:08 -0400
commitdcbec3e4047b17ea0f7a592cbafa54d81a68d6db (patch)
treef34d012f1d896b5e79dfe23d692baf5c66a04170 /python/servo
parent86ad84198ef0f53b12e0eecfacd9edbfa0d27a1a (diff)
downloadservo-dcbec3e4047b17ea0f7a592cbafa54d81a68d6db.tar.gz
servo-dcbec3e4047b17ea0f7a592cbafa54d81a68d6db.zip
Build native dependencies with UWP compatibility.
Diffstat (limited to 'python/servo')
-rw-r--r--python/servo/build_commands.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/python/servo/build_commands.py b/python/servo/build_commands.py
index 5c5cacdc48f..9250a172e88 100644
--- a/python/servo/build_commands.py
+++ b/python/servo/build_commands.py
@@ -626,6 +626,11 @@ class MachCommands(CommandBase):
if sys.platform == "win32":
env.setdefault("CC", "clang-cl.exe")
env.setdefault("CXX", "clang-cl.exe")
+ if uwp:
+ env.setdefault("CFLAGS", "")
+ env.setdefault("CXXFLAGS", "")
+ env["CFLAGS"] += " -DWINAPI_FAMILY=WINAPI_FAMILY_APP"
+ env["CXXFLAGS"] += " -DWINAPI_FAMILY=WINAPI_FAMILY_APP"
else:
env.setdefault("CC", "clang")
env.setdefault("CXX", "clang++")