beginning of vst3/mac merge

This commit is contained in:
Stefano D'Angelo 2024-05-30 15:38:13 +02:00
parent d0beba0e0b
commit cfc1c69b4f
3 changed files with 7 additions and 3 deletions

View File

@ -85,9 +85,9 @@ CXX_SRCS = ${CXX_SRCS_EXTRA}
CXX_OBJS = $(addprefix build/obj/, $(notdir $(CXX_SRCS:.cpp=.o)))
ifeq ($(UNAME_S), Darwin)
all: build/${BUNDLE_DIR}/${DLL_FILE} build/${BUNDLE_DIR}/Contents/Info.plist
all: build/${BUNDLE_DIR}/${DLL_FILE} build/${BUNDLE_DIR}/Contents/Info.plist build/${BUNDLE_DIR}/Contents/PkgInfo
build/${BUNDLE_DIR}/Contents/Info.plist: ${DATA_DIR}/data/Info.plist | build/${BUNDLE_DIR}/Contents
build/${BUNDLE_DIR}/Contents/%: ${DATA_DIR}/data/% | build/${BUNDLE_DIR}/Contents
cp $^ $@
else
all: build/${BUNDLE_DIR}/${DLL_FILE}
@ -113,11 +113,13 @@ install: all
mkdir -p -m 0755 "${VST3DIR}/${BUNDLE_DIR}/${DLL_DIR}"
install -m 0755 build/${BUNDLE_DIR}/${DLL_FILE} "${VST3DIR}/${BUNDLE_DIR}/${DLL_DIR}"
install -m 0644 build/${BUNDLE_DIR}/Contents/Info.plist "${VST3DIR}/${BUNDLE_DIR}/Contents/Info.plist"
install -m 0644 build/${BUNDLE_DIR}/Contents/PkgInfo "${VST3DIR}/${BUNDLE_DIR}/Contents/PkgInfo"
install-user: all
mkdir -p -m 0755 "${VST3DIR_USER}/${BUNDLE_DIR}/${DLL_DIR}"
install -m 0755 build/${BUNDLE_DIR}/${DLL_FILE} "${VST3DIR_USER}/${BUNDLE_DIR}/${DLL_DIR}"
install -m 0644 build/${BUNDLE_DIR}/Contents/Info.plist "${VST3DIR_USER}/${BUNDLE_DIR}/Contents/Info.plist"
install -m 0644 build/${BUNDLE_DIR}/Contents/PkgInfo "${VST3DIR_USER}/${BUNDLE_DIR}/Contents/PkgInfo"
else

View File

@ -0,0 +1 @@
BNDL????

View File

@ -15,7 +15,7 @@
* You should have received a copy of the GNU General Public License
* along with Tibia. If not, see <http://www.gnu.org/licenses/>.
*
* File author: Stefano D'Angelo
* File author: Stefano D'Angelo, Paolo Marrone
*/
var path = require("path");
@ -63,6 +63,7 @@ module.exports = function (data, api, outputCommon, outputData) {
data.product.parameters[i].paramIndex = i;
}
api.copyFile(`data${sep}PkgInfo`, `data${sep}PkgInfo`);
api.generateFileFromTemplateFile(`data${sep}Info.plist`, `data${sep}Info.plist`, data);
api.copyFile(`src${sep}vst3.c`, `src${sep}vst3.c`);
api.generateFileFromTemplateFile(`src${sep}data.h`, `src${sep}data.h`, data);