Nat! authored on 12-04-2016 15:39:52
Showing 3 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,30 @@
1
+cmake_minimum_required (VERSION 3.0)
2
+
3
+project (mulle-vararg)
4
+
5
+#
6
+# dont forget to wipe all cmake produced files before
7
+# changing this
8
+#
9
+
10
+if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
11
+   set (CMAKE_C_FLAGS "-Wno-parantheses")
12
+endif()
13
+
14
+#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O0 -g -DDEBUG -DMULLE_ATOMIC_TRACE")
15
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -g -DNDEBUG")
16
+
17
+set(HEADERS
18
+src/mulle_align.h
19
+src/mulle_vararg.h
20
+)
21
+
22
+add_library(mulle_vararg
23
+src/mulle_vararg.c
24
+)
25
+
26
+
27
+INSTALL(TARGETS mulle_vararg DESTINATION "lib")
28
+INSTALL(FILES ${HEADERS} DESTINATION "include/mulle_vararg")
29
+
30
+
... ...
@@ -23,6 +23,7 @@
23 23
 /* Begin PBXBuildFile section */
24 24
 		41998A2F1CB668C400D18DD8 /* mulle_align.h in Headers */ = {isa = PBXBuildFile; fileRef = 41998A2D1CB668C400D18DD8 /* mulle_align.h */; settings = {ATTRIBUTES = (Public, ); }; };
25 25
 		41998A301CB668C400D18DD8 /* mulle_vararg.h in Headers */ = {isa = PBXBuildFile; fileRef = 41998A2E1CB668C400D18DD8 /* mulle_vararg.h */; settings = {ATTRIBUTES = (Public, ); }; };
26
+		41998A4A1CB66AF200D18DD8 /* mulle_vararg.c in Sources */ = {isa = PBXBuildFile; fileRef = 41998A491CB66AF200D18DD8 /* mulle_vararg.c */; };
26 27
 /* End PBXBuildFile section */
27 28
 
28 29
 /* Begin PBXContainerItemProxy section */
... ...
@@ -36,7 +37,7 @@
36 37
 /* End PBXContainerItemProxy section */
37 38
 
38 39
 /* Begin PBXFileReference section */
39
-		41998A251CB668A200D18DD8 /* libmulle-vararg.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libmulle-vararg.a"; sourceTree = BUILT_PRODUCTS_DIR; };
40
+		41998A251CB668A200D18DD8 /* libmulle_vararg.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libmulle_vararg.a; sourceTree = BUILT_PRODUCTS_DIR; };
40 41
 		41998A2D1CB668C400D18DD8 /* mulle_align.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mulle_align.h; sourceTree = "<group>"; };
41 42
 		41998A2E1CB668C400D18DD8 /* mulle_vararg.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mulle_vararg.h; sourceTree = "<group>"; };
42 43
 		41998A321CB6693400D18DD8 /* Common.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Common.xcconfig; sourceTree = "<group>"; };
... ...
@@ -55,6 +56,7 @@
55 56
 		41998A3F1CB6693400D18DD8 /* _Common.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = _Common.xcconfig; sourceTree = "<group>"; };
56 57
 		41998A401CB6693400D18DD8 /* generate-dot.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "generate-dot.sh"; sourceTree = "<group>"; };
57 58
 		41998A411CB6693400D18DD8 /* update-all-configurations.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = "update-all-configurations.sh"; sourceTree = "<group>"; };
59
+		41998A491CB66AF200D18DD8 /* mulle_vararg.c */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.c; path = mulle_vararg.c; sourceTree = "<group>"; };
58 60
 /* End PBXFileReference section */
59 61
 
60 62
 /* Begin PBXFrameworksBuildPhase section */
... ...
@@ -80,7 +82,7 @@
80 82
 		41998A261CB668A200D18DD8 /* Products */ = {
81 83
 			isa = PBXGroup;
82 84
 			children = (
83
-				41998A251CB668A200D18DD8 /* libmulle-vararg.a */,
85
+				41998A251CB668A200D18DD8 /* libmulle_vararg.a */,
84 86
 			);
85 87
 			name = Products;
86 88
 			sourceTree = "<group>";
... ...
@@ -90,6 +92,7 @@
90 92
 			children = (
91 93
 				41998A2D1CB668C400D18DD8 /* mulle_align.h */,
92 94
 				41998A2E1CB668C400D18DD8 /* mulle_vararg.h */,
95
+				41998A491CB66AF200D18DD8 /* mulle_vararg.c */,
93 96
 			);
94 97
 			path = src;
95 98
 			sourceTree = "<group>";
... ...
@@ -132,9 +135,9 @@
132 135
 /* End PBXHeadersBuildPhase section */
133 136
 
134 137
 /* Begin PBXNativeTarget section */
135
-		41998A241CB668A200D18DD8 /* mulle-vararg */ = {
138
+		41998A241CB668A200D18DD8 /* mulle_vararg */ = {
136 139
 			isa = PBXNativeTarget;
137
-			buildConfigurationList = 41998A291CB668A200D18DD8 /* Build configuration list for PBXNativeTarget "mulle-vararg" */;
140
+			buildConfigurationList = 41998A291CB668A200D18DD8 /* Build configuration list for PBXNativeTarget "mulle_vararg" */;
138 141
 			buildPhases = (
139 142
 				41998A211CB668A200D18DD8 /* Sources */,
140 143
 				41998A221CB668A200D18DD8 /* Frameworks */,
... ...
@@ -144,9 +147,9 @@
144 147
 			);
145 148
 			dependencies = (
146 149
 			);
147
-			name = "mulle-vararg";
150
+			name = mulle_vararg;
148 151
 			productName = "mulle-vararg";
149
-			productReference = 41998A251CB668A200D18DD8 /* libmulle-vararg.a */;
152
+			productReference = 41998A251CB668A200D18DD8 /* libmulle_vararg.a */;
150 153
 			productType = "com.apple.product-type.library.static";
151 154
 		};
152 155
 /* End PBXNativeTarget section */
... ...
@@ -179,7 +182,7 @@
179 182
 			projectRoot = "";
180 183
 			targets = (
181 184
 				41998A421CB669A300D18DD8 /* Libraries */,
182
-				41998A241CB668A200D18DD8 /* mulle-vararg */,
185
+				41998A241CB668A200D18DD8 /* mulle_vararg */,
183 186
 			);
184 187
 		};
185 188
 /* End PBXProject section */
... ...
@@ -189,6 +192,7 @@
189 192
 			isa = PBXSourcesBuildPhase;
190 193
 			buildActionMask = 2147483647;
191 194
 			files = (
195
+				41998A4A1CB66AF200D18DD8 /* mulle_vararg.c in Sources */,
192 196
 			);
193 197
 			runOnlyForDeploymentPostprocessing = 0;
194 198
 		};
... ...
@@ -197,7 +201,7 @@
197 201
 /* Begin PBXTargetDependency section */
198 202
 		41998A471CB669B100D18DD8 /* PBXTargetDependency */ = {
199 203
 			isa = PBXTargetDependency;
200
-			target = 41998A241CB668A200D18DD8 /* mulle-vararg */;
204
+			target = 41998A241CB668A200D18DD8 /* mulle_vararg */;
201 205
 			targetProxy = 41998A461CB669B100D18DD8 /* PBXContainerItemProxy */;
202 206
 		};
203 207
 /* End PBXTargetDependency section */
... ...
@@ -255,7 +259,7 @@
255 259
 			defaultConfigurationIsVisible = 0;
256 260
 			defaultConfigurationName = Release;
257 261
 		};
258
-		41998A291CB668A200D18DD8 /* Build configuration list for PBXNativeTarget "mulle-vararg" */ = {
262
+		41998A291CB668A200D18DD8 /* Build configuration list for PBXNativeTarget "mulle_vararg" */ = {
259 263
 			isa = XCConfigurationList;
260 264
 			buildConfigurations = (
261 265
 				41998A2A1CB668A200D18DD8 /* Debug */,
... ...
@@ -10,6 +10,8 @@
10 10
 #define mulle_align_h__
11 11
 
12 12
 #include <stdalign.h>
13
+#include <stdint.h>
14
+#include <stddef.h>
13 15
 
14 16
 
15 17
 __attribute(( const))