summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-04-23 01:59:10 +0200
committerCarl Hetherington <cth@carlh.net>2022-04-29 23:37:48 +0200
commitf37c1e40dcd5186c5aee95a4b0e6607c1b0045e4 (patch)
treed7048963c435262dac6c7af6044148ea15a42125 /platform
parent5c48efdde34ee11f135ea8b369d85d50d1410445 (diff)
Add a simple DCP editor.
Diffstat (limited to 'platform')
-rw-r--r--platform/osx/dcpomatic2_editor.Info.plist.in36
-rw-r--r--platform/osx/make_dmg.sh11
-rw-r--r--platform/osx/wscript1
-rw-r--r--platform/windows/dcpomatic_editor.rc2
-rw-r--r--platform/windows/wscript1
5 files changed, 51 insertions, 0 deletions
diff --git a/platform/osx/dcpomatic2_editor.Info.plist.in b/platform/osx/dcpomatic2_editor.Info.plist.in
new file mode 100644
index 000000000..229202ec6
--- /dev/null
+++ b/platform/osx/dcpomatic2_editor.Info.plist.in
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>English</string>
+ <key>CFBundleExecutable</key>
+ <string>dcpomatic2_editor</string>
+ <key>CFBundleGetInfoString</key>
+ <string>DCP-o-matic 2 Editor</string>
+ <key>CFBundleIconFile</key>
+ <string>dcpomatic2_editor.icns</string>
+ <key>CFBundleIdentifier</key>
+ <string>com.dcpomatic.editor</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>DCP-o-matic 2 Editor</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersions</key>
+ <string>@VERSION@</string>
+ <key>CFBundleSignature</key>
+ <string>DOMC</string>
+ <key>CFBundleVersion</key>
+ <string>@VERSION@</string>
+ <key>CFBundleAllowMixedLocalizations</key>
+ <true/>
+ <key>LSUIElement</key>
+ <string>0</string>
+ <key>NSMainNibFile</key>
+ <string>MainMenu</string>
+ <key>NSPrincipalClass</key>
+ <string>NSApplication</string>
+</dict>
+</plist>
diff --git a/platform/osx/make_dmg.sh b/platform/osx/make_dmg.sh
index 6f36839f7..c9ed43b94 100644
--- a/platform/osx/make_dmg.sh
+++ b/platform/osx/make_dmg.sh
@@ -202,6 +202,7 @@ function copy_resources {
cp $prefix/src/dcpomatic/graphics/osx/dcpomatic2_playlist.icns "$dest"
cp $prefix/src/dcpomatic/graphics/osx/dcpomatic2_disk.icns "$dest"
cp $prefix/src/dcpomatic/graphics/osx/dcpomatic2_combiner.icns "$dest"
+ cp $prefix/src/dcpomatic/graphics/osx/dcpomatic2_editor.icns "$dest"
cp $prefix/src/dcpomatic/graphics/osx/preferences/defaults.png "$dest"
cp $prefix/src/dcpomatic/graphics/osx/preferences/defaults@2x.png "$dest"
cp $prefix/src/dcpomatic/graphics/osx/preferences/kdm_email.png "$dest"
@@ -537,6 +538,16 @@ rl=("$approot/MacOS/dcpomatic2_combiner" "$approot/Frameworks/"*.dylib)
relink_relative "${rl[@]}"
make_dmg "$appdir" "" "DCP-o-matic Combiner" "dcpomatic2_verify openssl dcpomatic2_combiner"
+# DCP-o-matic Editor
+setup "DCP-o-matic 2 Editor.app"
+copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_editor "$approot/MacOS"
+copy $ROOT src/openssl/apps/openssl "$approot/MacOS"
+copy_verify
+cp $prefix/src/dcpomatic/build/platform/osx/dcpomatic2_editor.Info.plist "$approot/Info.plist"
+rl=("$approot/MacOS/dcpomatic2_editor" "$approot/Frameworks/"*.dylib)
+relink_relative "${rl[@]}"
+make_dmg "$appdir" "" "DCP-o-matic Editor" "dcpomatic2_verify openssl dcpomatic2_editor"
+
# DCP-o-matic Disk Writer .app
setup "DCP-o-matic 2 Disk Writer.app"
copy $ROOT src/dcpomatic/build/src/tools/dcpomatic2_disk "$approot/MacOS"
diff --git a/platform/osx/wscript b/platform/osx/wscript
index c0b3d9d10..fd6733a66 100644
--- a/platform/osx/wscript
+++ b/platform/osx/wscript
@@ -7,3 +7,4 @@ def build(bld):
obj = bld(features='subst', source='dcpomatic2_playlist.Info.plist.in', target='dcpomatic2_playlist.Info.plist', version=bld.env.VERSION)
obj = bld(features='subst', source='dcpomatic2_disk.Info.plist.in', target='dcpomatic2_disk.Info.plist', version=bld.env.VERSION)
obj = bld(features='subst', source='dcpomatic2_combiner.Info.plist.in', target='dcpomatic2_combiner.Info.plist', version=bld.env.VERSION)
+ obj = bld(features='subst', source='dcpomatic2_editor.Info.plist.in', target='dcpomatic2_editor.Info.plist', version=bld.env.VERSION)
diff --git a/platform/windows/dcpomatic_editor.rc b/platform/windows/dcpomatic_editor.rc
new file mode 100644
index 000000000..865590f51
--- /dev/null
+++ b/platform/windows/dcpomatic_editor.rc
@@ -0,0 +1,2 @@
+id ICON "../../graphics/windows/dcpomatic2_editor.ico"
+#include "wx-3.1/wx/msw/wx.rc"
diff --git a/platform/windows/wscript b/platform/windows/wscript
index 46974ed0f..a01d3dd5a 100644
--- a/platform/windows/wscript
+++ b/platform/windows/wscript
@@ -12,6 +12,7 @@ def write_installer(bits, dcpomatic_version, debug, disk):
('create', 'Creator'),
('playlist', 'Playlist Editor'),
('combiner', 'Combiner'),
+ ('editor', 'Editor'),
]
if disk: