diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1975511..3490dc1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -495,12 +495,6 @@ target_compile_definitions(tic80prolib PRIVATE TIC80_PRO)
set(TIC80_OUTPUTS ${TIC80_OUTPUTS} tic80-sokol tic80pro-sokol)
-if(APPLE)
- set(TIC80_SRC_COMMON ${TIC80_SRC_COMMON} src/ext/file_dialog.m)
-else()
- set(TIC80_SRC_COMMON ${TIC80_SRC_COMMON} src/ext/file_dialog.c)
-endif()
-
foreach(TIC80_OUTPUT ${TIC80_OUTPUTS})
if(TIC80_OUTPUT MATCHES "-sokol")
@@ -509,9 +503,11 @@ foreach(TIC80_OUTPUT ${TIC80_OUTPUTS})
set(SOKOL_RENDERER FALSE)
endif()
- message("SOKOL_RENDERER ${SOKOL_RENDERER}")
+ set(TIC80_SRC src/ext/file_dialog.c)
- set(TIC80_SRC ${TIC80_SRC_COMMON})
+ if(APPLE)
+ set(TIC80_SRC ${TIC80_SRC} src/ext/file_dialog.m)
+ endif()
if(SOKOL_RENDERER)
set(TIC80_SRC ${TIC80_SRC} src/system/sokol.c)
diff --git a/build/macosx/tic80-sokol.plist b/build/macosx/tic80-sokol.plist
new file mode 100644
index 0000000..509183f
--- /dev/null
+++ b/build/macosx/tic80-sokol.plist
@@ -0,0 +1,30 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleDisplayName
+ TIC-80 Sokol
+ CFBundleExecutable
+ tic80-sokol
+ CFBundleIconFile
+ tic80.icns
+ CFBundleIdentifier
+ com.nesbox.tic
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ TIC-80 Sokol
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 0.70.6
+ CFBundleVersion
+ 0.70.6
+ NSHumanReadableCopyright
+ http://tic.computer © 2017
+ NSHighResolutionCapable
+
+
+
diff --git a/build/macosx/tic80pro-sokol.plist b/build/macosx/tic80pro-sokol.plist
new file mode 100644
index 0000000..d617494
--- /dev/null
+++ b/build/macosx/tic80pro-sokol.plist
@@ -0,0 +1,30 @@
+
+
+
+
+ CFBundleDevelopmentRegion
+ en
+ CFBundleDisplayName
+ TIC-80 Pro Sokol
+ CFBundleExecutable
+ tic80pro-sokol
+ CFBundleIconFile
+ tic80.icns
+ CFBundleIdentifier
+ com.nesbox.tic
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ TIC-80 Pro Sokol
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ 0.70.6
+ CFBundleVersion
+ 0.70.6
+ NSHumanReadableCopyright
+ http://tic.computer © 2017
+ NSHighResolutionCapable
+
+
+