Skip to content

Commit

Permalink
MAINT: Add withAppBundles flag
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzE authored and gabrielbmotta committed Oct 30, 2020
1 parent e531d5b commit 95af067
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 31 deletions.
5 changes: 4 additions & 1 deletion applications/mne_analyze/mne_analyze/mne_analyze.pro
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,10 @@ CONFIG(debug, debug|release) {
}

CONFIG += console
CONFIG -= app_bundle

!contains(MNECPP_CONFIG, withAppBundles) {
CONFIG -= app_bundle
}

contains(MNECPP_CONFIG, wasm) {
# QMAKE_LFLAGS += -s ERROR_ON_UNDEFINED_SYMBOLS=1
Expand Down
5 changes: 2 additions & 3 deletions applications/mne_anonymize/mne_anonymize.pro
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,8 @@ CONFIG(debug,debug|release) {
}
}

contains(MNECPP_CONFIG, static) {
CONFIG += static
DEFINES += STATICBUILD
!contains(MNECPP_CONFIG, withAppBundles) {
CONFIG -= app_bundle
}

contains(MNECPP_CONFIG, wasm) {
Expand Down
5 changes: 4 additions & 1 deletion applications/mne_dipole_fit/mne_dipole_fit.pro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ TEMPLATE = app
QT += widgets 3dextras network charts opengl

CONFIG += console
CONFIG -= app_bundle

!contains(MNECPP_CONFIG, withAppBundles) {
CONFIG -= app_bundle
}

contains(MNECPP_CONFIG, static) {
CONFIG += static
Expand Down
5 changes: 4 additions & 1 deletion applications/mne_forward_solution/mne_forward_solution.pro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ TEMPLATE = app
QT += widgets network concurrent

CONFIG += console
CONFIG -= app_bundle

!contains(MNECPP_CONFIG, withAppBundles) {
CONFIG -= app_bundle
}

contains(MNECPP_CONFIG, static) {
CONFIG += static
Expand Down
5 changes: 4 additions & 1 deletion applications/mne_rt_server/mne_rt_server/mne_rt_server.pro
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ QT += network concurrent
QT -= gui

CONFIG += console
CONFIG -= app_bundle

!contains(MNECPP_CONFIG, withAppBundles) {
CONFIG -= app_bundle
}

TARGET = mne_rt_server
CONFIG(debug, debug|release) {
Expand Down
5 changes: 4 additions & 1 deletion applications/mne_scan/mne_scan/mne_scan.pro
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@ TEMPLATE = app
QT += network core widgets xml svg charts concurrent opengl 3dextras

CONFIG += console
#CONFIG -= app_bundle

!contains(MNECPP_CONFIG, withAppBundles) {
CONFIG -= app_bundle
}

TARGET = mne_scan
CONFIG(debug, debug|release) {
Expand Down
24 changes: 1 addition & 23 deletions mne-cpp.pri
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,6 @@ defineTest(minQtVersion) {
return(false)
}

defineReplace(macDeployArgs) {
target = $$1
target_ext = $$2
mne_binary_dir = $$3
mne_library_dir = $$4
extra_args = $$5

isEmpty(target_ext) {
target_ext = .app
}

# Deploy qt dependencies
deploy_cmd = macdeployqt

deploy_target = $$shell_quote($$shell_path($${mne_binary_dir}/$${target}$${target_ext}))

deploy_libs_to_copy = -libpath=$${mne_library_dir}
!isEmpty(extra_args) {
deploy_libs_to_copy += $${extra_args}
}
return($$deploy_cmd $$deploy_target $$deploy_libs_to_copy)
}

defineReplace(winDeployLibArgs) {
# Copy library to bin folder
target = $$1
Expand Down Expand Up @@ -122,6 +99,7 @@ QMAKE_TARGET_COPYRIGHT = Copyright (C) 2020 Authors of MNE-CPP. All rights reser
## To build MNE Scan with EegoSports support: qmake MNECPP_CONFIG+=withEego
## To build MNE Scan with GUSBAmp support: qmake MNECPP_CONFIG+=withGUSBAmp
## To build MNE Scan with TMSI support: qmake MNECPP_CONFIG+=withTmsi
## To build app bundles on MacOS: qmake MNECPP_CONFIG+=withAppBundles

# Default flags
MNECPP_CONFIG +=
Expand Down

0 comments on commit 95af067

Please sign in to comment.