|
256 | 256 | end
|
257 | 257 |
|
258 | 258 |
|
| 259 | + function suite.PBXFileReference_ListsTVOSWindowedTarget() |
| 260 | + _TARGET_OS = "tvos" |
| 261 | + kind "WindowedApp" |
| 262 | + prepare() |
| 263 | + xcode.PBXFileReference(tr) |
| 264 | + test.capture [[ |
| 265 | +/* Begin PBXFileReference section */ |
| 266 | + E5FB9875FD0E33A7ED2A2EB5 /* MyProject.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = MyProject.app; path = MyProject.app; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 267 | +/* End PBXFileReference section */ |
| 268 | + ]] |
| 269 | + end |
| 270 | + |
| 271 | + |
259 | 272 | function suite.PBXFileReference_ListsStaticLibTarget()
|
260 | 273 | kind "StaticLib"
|
261 | 274 | prepare()
|
|
281 | 294 | end
|
282 | 295 |
|
283 | 296 |
|
| 297 | + function suite.PBXFileReference_ListsTVOSStaticLibTarget() |
| 298 | + _TARGET_OS = "tvos" |
| 299 | + kind "StaticLib" |
| 300 | + prepare() |
| 301 | + xcode.PBXFileReference(tr) |
| 302 | + test.capture [[ |
| 303 | +/* Begin PBXFileReference section */ |
| 304 | + FDCF31ACF735331EEAD08FEC /* libMyProject.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; name = libMyProject.a; path = libMyProject.a; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 305 | +/* End PBXFileReference section */ |
| 306 | + ]] |
| 307 | + end |
| 308 | + |
| 309 | + |
284 | 310 | function suite.PBXFileReference_ListsSharedLibTarget()
|
285 | 311 | kind "SharedLib"
|
286 | 312 | prepare()
|
|
306 | 332 | end
|
307 | 333 |
|
308 | 334 |
|
| 335 | + function suite.PBXFileReference_ListsTVOSSharedLibTarget() |
| 336 | + _TARGET_OS = "tvos" |
| 337 | + kind "SharedLib" |
| 338 | + prepare() |
| 339 | + xcode.PBXFileReference(tr) |
| 340 | + test.capture [[ |
| 341 | +/* Begin PBXFileReference section */ |
| 342 | + 2781AF7F7E0F19F156882DBF /* libMyProject.dylib */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.dylib"; includeInIndex = 0; name = libMyProject.dylib; path = libMyProject.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 343 | +/* End PBXFileReference section */ |
| 344 | + ]] |
| 345 | + end |
| 346 | + |
| 347 | + |
309 | 348 | function suite.PBXFileReference_ListsOSXBundleTarget()
|
310 | 349 | kind "SharedLib"
|
311 | 350 | sharedlibtype "OSXBundle"
|
|
332 | 371 | ]]
|
333 | 372 | end
|
334 | 373 |
|
| 374 | + function suite.PBXFileReference_ListsTVOSOSXBundleTarget() |
| 375 | + _TARGET_OS = "tvos" |
| 376 | + kind "SharedLib" |
| 377 | + sharedlibtype "OSXBundle" |
| 378 | + prepare() |
| 379 | + xcode.PBXFileReference(tr) |
| 380 | + test.capture [[ |
| 381 | +/* Begin PBXFileReference section */ |
| 382 | + 8AD066EE75BC8CE0BDA2552E /* MyProject.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = MyProject.bundle; path = MyProject.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 383 | +/* End PBXFileReference section */ |
| 384 | + ]] |
| 385 | + end |
| 386 | + |
335 | 387 | function suite.PBXFileReference_ListsXCTestTarget()
|
336 | 388 | kind "SharedLib"
|
337 | 389 | sharedlibtype "XCTest"
|
|
357 | 409 | ]]
|
358 | 410 | end
|
359 | 411 |
|
| 412 | + function suite.PBXFileReference_ListsTVOSXCTestTarget() |
| 413 | + _TARGET_OS = "tvos" |
| 414 | + kind "SharedLib" |
| 415 | + sharedlibtype "XCTest" |
| 416 | + prepare() |
| 417 | + xcode.PBXFileReference(tr) |
| 418 | + test.capture [[ |
| 419 | +/* Begin PBXFileReference section */ |
| 420 | + F573990FE05FBF012845874F /* MyProject.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; name = MyProject.xctest; path = MyProject.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 421 | +/* End PBXFileReference section */ |
| 422 | + ]] |
| 423 | + end |
| 424 | + |
360 | 425 | function suite.PBXFileReference_ListsOSXFrameworkTarget()
|
361 | 426 | kind "SharedLib"
|
362 | 427 | sharedlibtype "OSXFramework"
|
|
384 | 449 | end
|
385 | 450 |
|
386 | 451 |
|
| 452 | + function suite.PBXFileReference_ListsTVOSOSXFrameworkTarget() |
| 453 | + _TARGET_OS = "tvos" |
| 454 | + kind "SharedLib" |
| 455 | + sharedlibtype "OSXFramework" |
| 456 | + prepare() |
| 457 | + xcode.PBXFileReference(tr) |
| 458 | + test.capture [[ |
| 459 | +/* Begin PBXFileReference section */ |
| 460 | + 2D914F2255CC07D43D679562 /* MyProject.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; name = MyProject.framework; path = MyProject.framework; sourceTree = BUILT_PRODUCTS_DIR; }; |
| 461 | +/* End PBXFileReference section */ |
| 462 | + ]] |
| 463 | + end |
| 464 | + |
387 | 465 |
|
388 | 466 | function suite.PBXFileReference_ListsSourceFiles()
|
389 | 467 | files { "source.c" }
|
|
2238 | 2316 | ]]
|
2239 | 2317 | end
|
2240 | 2318 |
|
| 2319 | + function suite.XCBuildConfigurationTarget_OnTVOS() |
| 2320 | + _TARGET_OS = "tvos" |
| 2321 | + prepare() |
| 2322 | + xcode.XCBuildConfiguration_Target(tr, tr.products.children[1], tr.configs[1]) |
| 2323 | + test.capture [[ |
| 2324 | + FDC4CBFB4635B02D8AD4823B /* Debug */ = { |
| 2325 | + isa = XCBuildConfiguration; |
| 2326 | + buildSettings = { |
| 2327 | + ALWAYS_SEARCH_USER_PATHS = NO; |
| 2328 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "Apple Developer"; |
| 2329 | + CONFIGURATION_BUILD_DIR = bin/Debug; |
| 2330 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; |
| 2331 | + GCC_DYNAMIC_NO_PIC = NO; |
| 2332 | + INSTALL_PATH = /usr/local/bin; |
| 2333 | + PRODUCT_NAME = MyProject; |
| 2334 | + SDKROOT = appletvos; |
| 2335 | + }; |
| 2336 | + name = Debug; |
| 2337 | + }; |
| 2338 | + ]] |
| 2339 | + end |
| 2340 | + |
| 2341 | + function suite.XCBuildConfigurationTarget_OnTVOSMinVersion() |
| 2342 | + _TARGET_OS = "tvos" |
| 2343 | + systemversion "8.3" |
| 2344 | + prepare() |
| 2345 | + xcode.XCBuildConfiguration_Target(tr, tr.products.children[1], tr.configs[1]) |
| 2346 | + test.capture [[ |
| 2347 | + FDC4CBFB4635B02D8AD4823B /* Debug */ = { |
| 2348 | + isa = XCBuildConfiguration; |
| 2349 | + buildSettings = { |
| 2350 | + ALWAYS_SEARCH_USER_PATHS = NO; |
| 2351 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "Apple Developer"; |
| 2352 | + CONFIGURATION_BUILD_DIR = bin/Debug; |
| 2353 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; |
| 2354 | + GCC_DYNAMIC_NO_PIC = NO; |
| 2355 | + INSTALL_PATH = /usr/local/bin; |
| 2356 | + PRODUCT_NAME = MyProject; |
| 2357 | + SDKROOT = appletvos; |
| 2358 | + TVOS_DEPLOYMENT_TARGET = 8.3; |
| 2359 | + }; |
| 2360 | + name = Debug; |
| 2361 | + }; |
| 2362 | + ]] |
| 2363 | + end |
| 2364 | + |
| 2365 | + function suite.XCBuildConfigurationTarget_OnTVOSMinMaxVersion() |
| 2366 | + _TARGET_OS = "tvos" |
| 2367 | + systemversion "8.3:9.1" |
| 2368 | + prepare() |
| 2369 | + xcode.XCBuildConfiguration_Target(tr, tr.products.children[1], tr.configs[1]) |
| 2370 | + test.capture [[ |
| 2371 | + FDC4CBFB4635B02D8AD4823B /* Debug */ = { |
| 2372 | + isa = XCBuildConfiguration; |
| 2373 | + buildSettings = { |
| 2374 | + ALWAYS_SEARCH_USER_PATHS = NO; |
| 2375 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "Apple Developer"; |
| 2376 | + CONFIGURATION_BUILD_DIR = bin/Debug; |
| 2377 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; |
| 2378 | + GCC_DYNAMIC_NO_PIC = NO; |
| 2379 | + INSTALL_PATH = /usr/local/bin; |
| 2380 | + PRODUCT_NAME = MyProject; |
| 2381 | + SDKROOT = appletvos; |
| 2382 | + TVOS_DEPLOYMENT_TARGET = 8.3; |
| 2383 | + }; |
| 2384 | + name = Debug; |
| 2385 | + }; |
| 2386 | + ]] |
| 2387 | + end |
| 2388 | + |
| 2389 | + function suite.XCBuildConfigurationTarget_OnTVOSCodeSigningIdentity() |
| 2390 | + _TARGET_OS = "tvos" |
| 2391 | + xcodecodesigningidentity "Premake Developers" |
| 2392 | + prepare() |
| 2393 | + xcode.XCBuildConfiguration_Target(tr, tr.products.children[1], tr.configs[1]) |
| 2394 | + test.capture [[ |
| 2395 | + FDC4CBFB4635B02D8AD4823B /* Debug */ = { |
| 2396 | + isa = XCBuildConfiguration; |
| 2397 | + buildSettings = { |
| 2398 | + ALWAYS_SEARCH_USER_PATHS = NO; |
| 2399 | + "CODE_SIGN_IDENTITY[sdk=appletvos*]" = "Premake Developers"; |
| 2400 | + CONFIGURATION_BUILD_DIR = bin/Debug; |
| 2401 | + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; |
| 2402 | + GCC_DYNAMIC_NO_PIC = NO; |
| 2403 | + INSTALL_PATH = /usr/local/bin; |
| 2404 | + PRODUCT_NAME = MyProject; |
| 2405 | + SDKROOT = appletvos; |
| 2406 | + }; |
| 2407 | + name = Debug; |
| 2408 | + }; |
| 2409 | + ]] |
| 2410 | + end |
| 2411 | + |
2241 | 2412 |
|
2242 | 2413 | ---------------------------------------------------------------------------
|
2243 | 2414 | -- XCBuildConfiguration_Project tests
|
|
0 commit comments