-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This uses objfw-config to get to the flags, however, there's still several to dos that can only be addressed once dependencies can have per-language flags.
- Loading branch information
Showing
6 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#import <ObjFW/ObjFW.h> | ||
|
||
@interface TestApplication: OFObject <OFApplicationDelegate> | ||
@end | ||
|
||
OF_APPLICATION_DELEGATE(TestApplication) | ||
|
||
@implementation TestApplication | ||
- (void)applicationDidFinishLaunching: (OFNotification *)notification | ||
{ | ||
[OFApplication terminate]; | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
project('TestApplication', 'objc', | ||
version: '0.1', | ||
default_options: ['warning_level=3']) | ||
|
||
objfw_dep = dependency('objfw', required: false) | ||
if not objfw_dep.found() | ||
error('MESON_SKIP_TEST: Need objfw dependency') | ||
endif | ||
|
||
exe = executable('TestApplication', 'TestApplication.m', | ||
dependencies: [objfw_dep]) | ||
|
||
test('basic', exe) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#import <ObjFW/ObjFW.h> | ||
|
||
@interface TestApplication: OFObject <OFApplicationDelegate> | ||
@end | ||
|
||
OF_APPLICATION_DELEGATE(TestApplication) | ||
|
||
@implementation TestApplication | ||
- (void)applicationDidFinishLaunching: (OFNotification *)notification | ||
{ | ||
[OFApplication terminate]; | ||
} | ||
@end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
project('TestApplication', 'objcpp', | ||
version: '0.1', | ||
default_options: ['warning_level=3']) | ||
|
||
objfw_dep = dependency('objfw', required: false) | ||
if not objfw_dep.found() | ||
error('MESON_SKIP_TEST: Need objfw dependency') | ||
endif | ||
|
||
exe = executable('TestApplication', 'TestApplication.mm', | ||
dependencies: [objfw_dep]) | ||
|
||
test('basic', exe) |