Browse Source

modernize macos demo

merge-requests/2337/head
David Kassa 8 months ago
parent
commit
d77c490a1f
  1. 1
      demos/mac_app/sources/main.m
  2. 2
      demos/mac_app/wscript

1
demos/mac_app/sources/main.m

@ -1,6 +1,7 @@
// waf sample Mac application - main.m
// Chris Pickel, 2011
#import <Foundation/Foundation.h>
#import <Cocoa/Cocoa.h>
int main(int argc, const char* argv[]) {

2
demos/mac_app/wscript

@ -21,7 +21,7 @@ def configure(conf):
if not conf.env.ARCH_ST:
conf.fatal('This example is for macs only')
conf.env.FRAMEWORK_COCOA = 'Cocoa'
conf.env.ARCH_COCOA = ['i386', 'x86_64']
conf.env.ARCH_COCOA = ['x86_64', 'arm64']
def build(bld):
bld.program(

Loading…
Cancel
Save