Skip to content

Commit 3eee179

Browse files
committed
Enable preprocessor flag
1 parent c0b454b commit 3eee179

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

subprojects/native.wpiutil/pyproject.toml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,18 @@ name = "wpiutil"
3535
includedir = "src/native/wpiutil/include"
3636
libdir = "src/native/wpiutil/lib"
3737
shared_libraries = ["wpiutil"]
38+
39+
enable_if = "platform_system != 'Windows'"
40+
41+
[[tool.hatch.build.hooks.nativelib.pcfile]]
42+
pcfile = "src/native/wpiutil/native.wpiutil.pc"
43+
name = "wpiutil"
44+
45+
includedir = "src/native/wpiutil/include"
46+
libdir = "src/native/wpiutil/lib"
47+
shared_libraries = ["wpiutil"]
48+
49+
# All wpilib projects require this flag
50+
extra_cflags = "/Zc:preprocessor"
51+
52+
enable_if = "platform_system == 'Windows'"

0 commit comments

Comments
 (0)