-
Notifications
You must be signed in to change notification settings - Fork 4
/
s3eHidController_build.mkf
178 lines (155 loc) · 3.64 KB
/
s3eHidController_build.mkf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
# mkf file for building extension s3eHidController.
# NOTE: This file was originally written by the extension builder, but will not
# be overwritten (unless --force is specified) and is intended to be modified.
display_name "Extensions/s3eHidController"
includepath source/h
includepath h
defines
{
#Define the verbose channel to be off by default (but controllable by icf)
IW_TRACE_CHANNEL_HIDCONTROLLER_VERBOSE=2
#This macro indicates that this extension is being built
S3E_EXT_HIDCONTROLLER
}
#This command re-generates the relevant source files from the s4e when
#the mkb is run
extension
{
("$MARMALADE_ROOT/s3e/edk/builder")
"edk_build s3eHidController.s4e"
}
#include the extension builder subproject
subproject "$MARMALADE_ROOT/s3e/edk"
if {{defined I3D_OS_IPHONE}}
{
files
{
["source"]
(use_first_found, source/iphone, source/generic)
s3eHidController_platform.mm
#Add any iphone-specific files here
}
}
if {{defined I3D_OS_WINDOWS}}
{
files
{
["source"]
(use_first_found, source/windows, source/generic)
s3eHidController_platform.cpp
#Add any windows-specific files here
}
}
if {{defined S3E_ANDROID}}
{
files
{
["source"]
(use_first_found, source/android, source/generic)
s3eHidController_platform.cpp
#Add any android-specific files here
}
}
if {{defined I3D_OS_OSX}}
{
frameworks
{
"IOKit"
"ForceFeedback"
}
files
{
["source"]
(use_first_found, source/osx, source/generic)
s3eHidController_platform.mm
Xbox360Controller.h
Xbox360Controller.m
Xbox360ControllerDelegate.h
Xbox360ControllerManager.h
Xbox360ControllerManager.m
}
}
if {{defined I3D_OS_LINUX and not defined S3E_ANDROID}}
{
files
{
["source"]
(use_first_found, source/linux, source/generic)
s3eHidController_platform.cpp
#Add any linux-specific files here
}
}
if {{defined I3D_OS_WP8}}
{
files
{
["h"]
(source/wp8)
s3eHidController_shim.h
["source"]
(use_first_found, source/wp8, source/generic)
s3eHidController_platform.cpp
s3eHidController_shim.cpp
#Add any wp8-specific files here
}
}
if {{defined I3D_OS_WS8}}
{
files
{
["h"]
(source/ws8)
s3eHidController_shim.h
["source"]
(use_first_found, source/ws8, source/generic)
s3eHidController_platform.cpp
s3eHidController_shim.cpp
#Add any ws8-specific files here
}
}
if {{defined I3D_OS_WS81}}
{
files
{
["h"]
(source/ws81)
s3eHidController_shim.h
["source"]
(use_first_found, source/ws81, source/generic)
s3eHidController_platform.cpp
s3eHidController_shim.cpp
#Add any ws81-specific files here
}
}
if {{defined I3D_OS_WP81}}
{
files
{
["h"]
(source/wp81)
s3eHidController_shim.h
["source"]
(use_first_found, source/wp81, source/generic)
s3eHidController_platform.cpp
s3eHidController_shim.cpp
#Add any wp81-specific files here
}
}
files
{
# Add any platform-independent files here
# Note that if the file exists in the platform-specific directory
# it will be taken from there instead of 'generic'
s3eHidController_register.cpp
s3eHidController.cpp
["h"]
(source/h)
s3eHidController_internal.h
s3eHidController_autodefs.h
["docs"]
(interface)
s3eHidController.defines.txt
[]
(.)
s3eHidController.s4e
}