Skip to content

Commit fe71349

Browse files
committed
xcproject improvements
1 parent b8cc1eb commit fe71349

File tree

2 files changed

+33
-51
lines changed

2 files changed

+33
-51
lines changed

TemplateProject/projects/TemplateProject-macOS.xcodeproj/project.pbxproj

Lines changed: 30 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
buildConfigurationList = B87FD1ED2351C6F900CF7307 /* Build configuration list for PBXAggregateTarget "Update plists" */;
2626
buildPhases = (
2727
B87FD1EE2351C71300CF7307 /* Run Script - Update Version */,
28-
4FC523AD29AB9A280011C63B /* ShellScript */,
2928
);
3029
dependencies = (
3130
);
@@ -1647,7 +1646,7 @@
16471646
isa = PBXNativeTarget;
16481647
buildConfigurationList = 4F20EF2F132C69FE0030E34C /* Build configuration list for PBXNativeTarget "VST2" */;
16491648
buildPhases = (
1650-
4F210D6829AB9B98000EBD80 /* Run Script - Prepare Resources */,
1649+
4F210D6829AB9B98000EBD80 /* Prepare Resources */,
16511650
4F20EEC9132C69FE0030E34C /* Resources */,
16521651
4F20EECA132C69FE0030E34C /* Sources */,
16531652
4F20EF2C132C69FE0030E34C /* Frameworks */,
@@ -1667,7 +1666,7 @@
16671666
isa = PBXNativeTarget;
16681667
buildConfigurationList = 4F3907742013EBA400DDA490 /* Build configuration list for PBXNativeTarget "AUv3" */;
16691668
buildPhases = (
1670-
4F78BE3B22E74A7E00AD537E /* Run Script - Touch dummy file */,
1669+
4F78BE3B22E74A7E00AD537E /* Touch dummy file */,
16711670
4F39075C2013EBA300DDA490 /* Sources */,
16721671
4F39075D2013EBA300DDA490 /* Frameworks */,
16731672
4F39075E2013EBA300DDA490 /* Resources */,
@@ -1686,11 +1685,11 @@
16861685
isa = PBXNativeTarget;
16871686
buildConfigurationList = 4F3AE1DC12C0E5E2001FD7A4 /* Build configuration list for PBXNativeTarget "AU" */;
16881687
buildPhases = (
1689-
4F210D6A29AB9BD4000EBD80 /* Run Script - Prepare Resources */,
1688+
4F210D6A29AB9BD4000EBD80 /* Prepare Resources */,
16901689
4F25BECE12C61F47005D51F7 /* Resources */,
16911690
4F3AE1A212C0E5E2001FD7A4 /* Sources */,
16921691
4F3AE1DA12C0E5E2001FD7A4 /* Rez */,
1693-
4F744D4C14005ADA002FAD90 /* Run Script - Clear AudioUnit Caches */,
1692+
4F744D4C14005ADA002FAD90 /* Clear AudioUnit Caches */,
16941693
4FBDD26520A319580054B111 /* Frameworks */,
16951694
);
16961695
buildRules = (
@@ -1707,14 +1706,14 @@
17071706
isa = PBXNativeTarget;
17081707
buildConfigurationList = 4F3EE1EC231438D000004786 /* Build configuration list for PBXNativeTarget "AUv3App" */;
17091708
buildPhases = (
1710-
4F210D6B29AB9C08000EBD80 /* Run Script - Prepare Resources */,
1711-
4FC523AC29AB99F00011C63B /* Run Script - SWELL Resgen */,
1709+
4F210D6B29AB9C08000EBD80 /* Prepare Resources */,
1710+
4FC523AC29AB99F00011C63B /* SWELL Resgen */,
17121711
4F3EE1BE231438D000004786 /* Resources */,
17131712
4F3EE1C1231438D000004786 /* Sources */,
17141713
4F3EE1E6231438D000004786 /* Frameworks */,
17151714
4F3EE1E8231438D000004786 /* Embed Frameworks */,
17161715
4F3EE1EA231438D000004786 /* Embed AUv3 App Extension */,
1717-
4F02E1D723144CDA00731A7D /* Run Script - Force register AUv3 */,
1716+
4F02E1D723144CDA00731A7D /* Force register AUv3 */,
17181717
);
17191718
buildRules = (
17201719
);
@@ -1749,7 +1748,7 @@
17491748
isa = PBXNativeTarget;
17501749
buildConfigurationList = 4F9828DC140A9EB700F3FCC1 /* Build configuration list for PBXNativeTarget "VST3" */;
17511750
buildPhases = (
1752-
4F210D6929AB9BB3000EBD80 /* Run Script - Prepare Resources */,
1751+
4F210D6929AB9BB3000EBD80 /* Prepare Resources */,
17531752
4F9828AF140A9EB700F3FCC1 /* Resources */,
17541753
4F9828B5140A9EB700F3FCC1 /* Sources */,
17551754
4F9828D7140A9EB700F3FCC1 /* Frameworks */,
@@ -1789,8 +1788,8 @@
17891788
isa = PBXNativeTarget;
17901789
buildConfigurationList = 4FD16A0F13B63082001D0217 /* Build configuration list for PBXNativeTarget "APP" */;
17911790
buildPhases = (
1792-
4F210D6729AB9B39000EBD80 /* Run Script - Prepare Resources */,
1793-
4FBCC1B21FD5AE8500EFE550 /* Run Script - SWELL Resgen */,
1791+
4F210D6729AB9B39000EBD80 /* Prepare Resources */,
1792+
4FBCC1B21FD5AE8500EFE550 /* SWELL Resgen */,
17941793
4FD16A0513B63081001D0217 /* Resources */,
17951794
4FD16A0613B63081001D0217 /* Sources */,
17961795
);
@@ -1990,21 +1989,21 @@
19901989
/* End PBXRezBuildPhase section */
19911990

19921991
/* Begin PBXShellScriptBuildPhase section */
1993-
4F02E1D723144CDA00731A7D /* Run Script - Force register AUv3 */ = {
1992+
4F02E1D723144CDA00731A7D /* Force register AUv3 */ = {
19941993
isa = PBXShellScriptBuildPhase;
19951994
buildActionMask = 2147483647;
19961995
files = (
19971996
);
19981997
inputPaths = (
19991998
);
2000-
name = "Run Script - Force register AUv3";
1999+
name = "Force register AUv3";
20012000
outputPaths = (
20022001
);
20032002
runOnlyForDeploymentPostprocessing = 0;
20042003
shellPath = /bin/sh;
20052004
shellScript = "if [ -d $APP_PATH/TemplateProject.app ]; then\n pluginkit -a $APP_PATH/TemplateProject.app/Contents/PlugIns/TemplateProject.appex\n echo \"Force register auv3\"\nelse\n echo \"App path doesn't exist yet, cant force register auv3\"\nfi\n";
20062005
};
2007-
4F210D6729AB9B39000EBD80 /* Run Script - Prepare Resources */ = {
2006+
4F210D6729AB9B39000EBD80 /* Prepare Resources */ = {
20082007
isa = PBXShellScriptBuildPhase;
20092008
alwaysOutOfDate = 1;
20102009
buildActionMask = 2147483647;
@@ -2014,7 +2013,7 @@
20142013
);
20152014
inputPaths = (
20162015
);
2017-
name = "Run Script - Prepare Resources";
2016+
name = "Prepare Resources";
20182017
outputFileListPaths = (
20192018
);
20202019
outputPaths = (
@@ -2023,7 +2022,7 @@
20232022
shellPath = /bin/sh;
20242023
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
20252024
};
2026-
4F210D6829AB9B98000EBD80 /* Run Script - Prepare Resources */ = {
2025+
4F210D6829AB9B98000EBD80 /* Prepare Resources */ = {
20272026
isa = PBXShellScriptBuildPhase;
20282027
alwaysOutOfDate = 1;
20292028
buildActionMask = 2147483647;
@@ -2033,7 +2032,7 @@
20332032
);
20342033
inputPaths = (
20352034
);
2036-
name = "Run Script - Prepare Resources";
2035+
name = "Prepare Resources";
20372036
outputFileListPaths = (
20382037
);
20392038
outputPaths = (
@@ -2042,7 +2041,7 @@
20422041
shellPath = /bin/sh;
20432042
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
20442043
};
2045-
4F210D6929AB9BB3000EBD80 /* Run Script - Prepare Resources */ = {
2044+
4F210D6929AB9BB3000EBD80 /* Prepare Resources */ = {
20462045
isa = PBXShellScriptBuildPhase;
20472046
alwaysOutOfDate = 1;
20482047
buildActionMask = 2147483647;
@@ -2052,7 +2051,7 @@
20522051
);
20532052
inputPaths = (
20542053
);
2055-
name = "Run Script - Prepare Resources";
2054+
name = "Prepare Resources";
20562055
outputFileListPaths = (
20572056
);
20582057
outputPaths = (
@@ -2061,7 +2060,7 @@
20612060
shellPath = /bin/sh;
20622061
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
20632062
};
2064-
4F210D6A29AB9BD4000EBD80 /* Run Script - Prepare Resources */ = {
2063+
4F210D6A29AB9BD4000EBD80 /* Prepare Resources */ = {
20652064
isa = PBXShellScriptBuildPhase;
20662065
alwaysOutOfDate = 1;
20672066
buildActionMask = 2147483647;
@@ -2071,7 +2070,7 @@
20712070
);
20722071
inputPaths = (
20732072
);
2074-
name = "Run Script - Prepare Resources";
2073+
name = "Prepare Resources";
20752074
outputFileListPaths = (
20762075
);
20772076
outputPaths = (
@@ -2080,7 +2079,7 @@
20802079
shellPath = /bin/sh;
20812080
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
20822081
};
2083-
4F210D6B29AB9C08000EBD80 /* Run Script - Prepare Resources */ = {
2082+
4F210D6B29AB9C08000EBD80 /* Prepare Resources */ = {
20842083
isa = PBXShellScriptBuildPhase;
20852084
alwaysOutOfDate = 1;
20862085
buildActionMask = 2147483647;
@@ -2090,7 +2089,7 @@
20902089
);
20912090
inputPaths = (
20922091
);
2093-
name = "Run Script - Prepare Resources";
2092+
name = "Prepare Resources";
20942093
outputFileListPaths = (
20952094
);
20962095
outputPaths = (
@@ -2099,7 +2098,7 @@
20992098
shellPath = /bin/sh;
21002099
shellScript = "python3 ../scripts/prepare_resources-mac.py\n";
21012100
};
2102-
4F744D4C14005ADA002FAD90 /* Run Script - Clear AudioUnit Caches */ = {
2101+
4F744D4C14005ADA002FAD90 /* Clear AudioUnit Caches */ = {
21032102
isa = PBXShellScriptBuildPhase;
21042103
alwaysOutOfDate = 1;
21052104
buildActionMask = 2147483647;
@@ -2108,43 +2107,43 @@
21082107
);
21092108
inputPaths = (
21102109
);
2111-
name = "Run Script - Clear AudioUnit Caches";
2110+
name = "Clear AudioUnit Caches";
21122111
outputPaths = (
21132112
);
21142113
runOnlyForDeploymentPostprocessing = 0;
21152114
shellPath = /bin/sh;
21162115
shellScript = "$SCRIPTS_PATH/clear_audiounit_caches.command\n";
21172116
};
2118-
4F78BE3B22E74A7E00AD537E /* Run Script - Touch dummy file */ = {
2117+
4F78BE3B22E74A7E00AD537E /* Touch dummy file */ = {
21192118
isa = PBXShellScriptBuildPhase;
21202119
buildActionMask = 2147483647;
21212120
files = (
21222121
);
21232122
inputPaths = (
21242123
);
2125-
name = "Run Script - Touch dummy file";
2124+
name = "Touch dummy file";
21262125
outputPaths = (
21272126
);
21282127
runOnlyForDeploymentPostprocessing = 0;
21292128
shellPath = /bin/sh;
21302129
shellScript = "touch $IPLUG_PATH/AUv3/IPlugAUv3Appex.m\n";
21312130
};
2132-
4FBCC1B21FD5AE8500EFE550 /* Run Script - SWELL Resgen */ = {
2131+
4FBCC1B21FD5AE8500EFE550 /* SWELL Resgen */ = {
21332132
isa = PBXShellScriptBuildPhase;
21342133
alwaysOutOfDate = 1;
21352134
buildActionMask = 2147483647;
21362135
files = (
21372136
);
21382137
inputPaths = (
21392138
);
2140-
name = "Run Script - SWELL Resgen";
2139+
name = "SWELL Resgen";
21412140
outputPaths = (
21422141
);
21432142
runOnlyForDeploymentPostprocessing = 0;
21442143
shellPath = /bin/sh;
21452144
shellScript = "../../iPlug2/WDL/swell/swell_resgen.sh ../resources/main.rc\n";
21462145
};
2147-
4FC523AC29AB99F00011C63B /* Run Script - SWELL Resgen */ = {
2146+
4FC523AC29AB99F00011C63B /* SWELL Resgen */ = {
21482147
isa = PBXShellScriptBuildPhase;
21492148
alwaysOutOfDate = 1;
21502149
buildActionMask = 2147483647;
@@ -2154,7 +2153,7 @@
21542153
);
21552154
inputPaths = (
21562155
);
2157-
name = "Run Script - SWELL Resgen";
2156+
name = "SWELL Resgen";
21582157
outputFileListPaths = (
21592158
);
21602159
outputPaths = (
@@ -2163,25 +2162,6 @@
21632162
shellPath = /bin/sh;
21642163
shellScript = "../../iPlug2/WDL/swell/swell_resgen.sh ../resources/main.rc\n";
21652164
};
2166-
4FC523AD29AB9A280011C63B /* ShellScript */ = {
2167-
isa = PBXShellScriptBuildPhase;
2168-
alwaysOutOfDate = 1;
2169-
buildActionMask = 2147483647;
2170-
files = (
2171-
);
2172-
inputFileListPaths = (
2173-
);
2174-
inputPaths = (
2175-
);
2176-
outputFileListPaths = (
2177-
);
2178-
outputPaths = (
2179-
);
2180-
runOnlyForDeploymentPostprocessing = 0;
2181-
shellPath = /bin/sh;
2182-
shellScript = "
2183-
";
2184-
};
21852165
B87FD1EE2351C71300CF7307 /* Run Script - Update Version */ = {
21862166
isa = PBXShellScriptBuildPhase;
21872167
alwaysOutOfDate = 1;

TemplateProject/scripts/prepare_resources-mac.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
# this script will copy the project's resources (pngs, ttfs, svgs etc) to the correct place
44
# depending on the value of PLUG_SHARED_RESOURCES in config.h
5-
# resources can either be copied into the plug-in bundle or into a shared path
5+
# resources can either be copied into the plug-in bundle (vst3, component etc) or into a shared path
66
# since the shared path should be accesible from the mac app sandbox,
77
# the path used is ~/Music/SHARED_RESOURCES_SUBPATH
8+
# you might also want to consider using bin2c resources
9+
# in order to hide the resources and/or simplify this process
810

911
import os, sys, shutil
1012

0 commit comments

Comments
 (0)