mirror of https://github.com/Gnucash/gnucash
Conflicts: CMakeLists.txt src/app-utils/CMakeLists.txt src/backend/sql/test/CMakeLists.txt src/backend/xml/test/CMakeLists.txt src/gnome-utils/CMakeLists.txt src/import-export/aqb/CMakeLists.txt src/import-export/csv-imp/CMakeLists.txt src/import-export/csv-imp/test/Makefile.am src/import-export/ofx/CMakeLists.txt src/import-export/qif-imp/CMakeLists.txt src/libqof/CMakeLists.txt src/register/ledger-core/CMakeLists.txt src/register/register-core/CMakeLists.txt src/register/register-gnome/CMakeLists.txt src/report/business-reports/CMakeLists.txt src/report/locale-specific/us/CMakeLists.txt src/report/report-gnome/CMakeLists.txt src/report/standard-reports/CMakeLists.txt src/report/stylesheets/CMakeLists.txtpull/143/merge
commit
c8402ad62e
@ -0,0 +1,25 @@
|
||||
|
||||
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(C_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/C)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/C)
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(CS_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/cs)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/cs)
|
||||
@ -0,0 +1,10 @@
|
||||
SET(account_DATA
|
||||
acctchrt_car.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(DA_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/da)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/da)
|
||||
@ -0,0 +1,15 @@
|
||||
|
||||
SET(dist_account_DATA
|
||||
acctchrt_auto.gnucash-xea
|
||||
acctchrt_autoloan.gnucash-xea
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_houseown.gnucash-xea
|
||||
acctchrt_investment.gnucash-xea
|
||||
acctchrt_kids.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(DE_AT_DIST ${dist_account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${dist_account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/de_AT)
|
||||
FILE(COPY ${dist_account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/de_AT)
|
||||
@ -0,0 +1,12 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_kids.gnucash-xea
|
||||
acctchrt_otherasset.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_chkmu.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(DE_CH_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/de_CH)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/de_CH)
|
||||
@ -0,0 +1,20 @@
|
||||
SET(account_DATA
|
||||
acctchrt_auto.gnucash-xea
|
||||
acctchrt_autoloan.gnucash-xea
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_houseown.gnucash-xea
|
||||
acctchrt_investment.gnucash-xea
|
||||
acctchrt_kids.gnucash-xea
|
||||
acctchrt_otherasset.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_studium.gnucash-xea
|
||||
acctchrt_skr03.gnucash-xea
|
||||
acctchrt_wohnungsw.gnucash-xea
|
||||
acctchrt_skr04.gnucash-xea
|
||||
acctchrt_skr49.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(DE_DE_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/de_DE)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/de_DE)
|
||||
@ -0,0 +1,9 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_brokerage.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(EL_GR_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/el_GR)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/el_GR)
|
||||
@ -0,0 +1,23 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea
|
||||
uk-vat.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(EN_GB_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/en_GB)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/en_GB)
|
||||
@ -0,0 +1,21 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ES_ES_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/es_ES)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/es_ES)
|
||||
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ES_MX_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/es_MX)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/es_MX)
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_sbr-xbrl.gnucash-xea
|
||||
acctchrt_ry.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(FI_FI_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/fi_FI)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/fi_FI)
|
||||
@ -0,0 +1,21 @@
|
||||
SET(account_DATA
|
||||
acctchrt_actifsfixes.gnucash-xea
|
||||
acctchrt_automobile.gnucash-xea
|
||||
acctchrt_basecommune.gnucash-xea
|
||||
acctchrt_cdmarchemon.gnucash-xea
|
||||
acctchrt_chequier.gnucash-xea
|
||||
acctchrt_conjointretraite.gnucash-xea
|
||||
acctchrt_conjointrev.gnucash-xea
|
||||
acctchrt_courtage.gnucash-xea
|
||||
acctchrt_etudeemprunt.gnucash-xea
|
||||
acctchrt_garderie.gnucash-xea
|
||||
acctchrt_locataire.gnucash-xea
|
||||
acctchrt_proprietaire.gnucash-xea
|
||||
acctchrt_retraite.gnucash-xea
|
||||
acctchrt_revenus.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(FR_CA_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/fr_CA)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/fr_CA)
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(FR_CH_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/fr_CH)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/fr_CH)
|
||||
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(FR_FR_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/fr_FR)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/fr_FR)
|
||||
@ -0,0 +1,24 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
|
||||
SET_DIST_LIST(HU_HU_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/hu_HU)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/hu_HU)
|
||||
|
||||
@ -0,0 +1,19 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(IT_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/it)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/it)
|
||||
@ -0,0 +1,24 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_full.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(JA_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/ja)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/ja)
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(KO_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/ko)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/ko)
|
||||
@ -0,0 +1,6 @@
|
||||
SET(account_DATA acctchrt_business.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(LT_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/lt)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/lt)
|
||||
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(LV_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/lv)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/lv)
|
||||
@ -0,0 +1,23 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_full.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(NB_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/nb)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/nb)
|
||||
@ -0,0 +1,9 @@
|
||||
SET(account_DATA
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_full.gnucash-xea
|
||||
acctchrt_rgs_1.1.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(NL_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/nl)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/nl)
|
||||
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(PL_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/pl)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/pl)
|
||||
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(PT_BR_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/pt_BR)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/pt_BR)
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(PT_PT_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/pt_PT)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/pt_PT)
|
||||
|
||||
@ -0,0 +1,11 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(RU_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/ru)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/ru)
|
||||
|
||||
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_currency.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(SK_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/sk)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/sk)
|
||||
|
||||
@ -0,0 +1,10 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_sbr-xbrl.gnucash-xea
|
||||
acctchrt_rf.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(SV_AX_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/sv_AX)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/sv_AX)
|
||||
|
||||
@ -0,0 +1,9 @@
|
||||
SET(account_DATA
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_sbr-xbrl.gnucash-xea
|
||||
acctchrt_rf.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(SV_FI_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/sv_FI)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/sv_FI)
|
||||
@ -0,0 +1,8 @@
|
||||
SET(account_DATA
|
||||
bas_2012.gnucash-xea
|
||||
acctchrt_common.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(SV_SE_DIST ${account_DATA} README.bas_2012 Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/sv_SE)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/sv_SE)
|
||||
@ -0,0 +1,14 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_TEKDUZ.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(TR_TR_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/tr_TR)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/tr_TR)
|
||||
@ -0,0 +1,22 @@
|
||||
SET(account_DATA
|
||||
acctchrt_brokerage.gnucash-xea
|
||||
acctchrt_business.gnucash-xea
|
||||
acctchrt_carloan.gnucash-xea
|
||||
acctchrt_cdmoneymkt.gnucash-xea
|
||||
acctchrt_checkbook.gnucash-xea
|
||||
acctchrt_childcare.gnucash-xea
|
||||
acctchrt_common.gnucash-xea
|
||||
acctchrt_eduloan.gnucash-xea
|
||||
acctchrt_fixedassets.gnucash-xea
|
||||
acctchrt_homeloan.gnucash-xea
|
||||
acctchrt_homeown.gnucash-xea
|
||||
acctchrt_otherloan.gnucash-xea
|
||||
acctchrt_renter.gnucash-xea
|
||||
acctchrt_retiremt.gnucash-xea
|
||||
acctchrt_spouseinc.gnucash-xea
|
||||
acctchrt_spouseretire.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ZH_CN_DIST ${account_DATA} acctchrt_full.gnucash-xea Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/zh_CN)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/zn_CN)
|
||||
@ -0,0 +1,6 @@
|
||||
SET(account_DATA acctchrt_business.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ZH_HK_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/zh_HK)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/zh_HK)
|
||||
@ -0,0 +1,6 @@
|
||||
SET(account_DATA acctchrt_business.gnucash-xea)
|
||||
|
||||
SET_DIST_LIST(ZH_TW_DIST ${account_DATA} Makefile.am CMakeLists.txt)
|
||||
|
||||
INSTALL(FILES ${account_DATA} DESTINATION ${ACCOUNTS_INSTALL_DIR}/zh_TW)
|
||||
FILE(COPY ${account_DATA} DESTINATION ${ACCOUNTS_BUILD_DIR}/zh_TW)
|
||||
@ -0,0 +1,23 @@
|
||||
# This is taken from https://cmake.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F
|
||||
|
||||
if(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
||||
message(FATAL_ERROR "Cannot find install manifest: @CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
||||
endif(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt")
|
||||
|
||||
file(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files)
|
||||
string(REGEX REPLACE "\n" ";" files "${files}")
|
||||
foreach(file ${files})
|
||||
message(STATUS "Uninstalling $ENV{DESTDIR}${file}")
|
||||
if(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
|
||||
exec_program(
|
||||
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\""
|
||||
OUTPUT_VARIABLE rm_out
|
||||
RETURN_VALUE rm_retval
|
||||
)
|
||||
if(NOT "${rm_retval}" STREQUAL 0)
|
||||
message(FATAL_ERROR "Problem when removing $ENV{DESTDIR}${file}")
|
||||
endif(NOT "${rm_retval}" STREQUAL 0)
|
||||
else(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
|
||||
message(STATUS "File $ENV{DESTDIR}${file} does not exist.")
|
||||
endif(IS_SYMLINK "$ENV{DESTDIR}${file}" OR EXISTS "$ENV{DESTDIR}${file}")
|
||||
endforeach(file)
|
||||
@ -0,0 +1,5 @@
|
||||
ADD_SUBDIRECTORY(libc)
|
||||
ADD_SUBDIRECTORY(goffice)
|
||||
|
||||
SET_LOCAL_DIST(lib_DIST_local CMakeLists.txt Makefile.am README)
|
||||
SET(lib_DIST ${lib_DIST_local} ${libc_DIST} ${goffice_DIST} PARENT_SCOPE)
|
||||
@ -0,0 +1,14 @@
|
||||
set(goffice_noinst_HEADERS go-optionmenu.h go-charmap-sel.h go-glib-extras.h)
|
||||
set(goffice_SOURCES go-optionmenu.c go-charmap-sel.c go-glib-extras.c)
|
||||
|
||||
#ADD_LIBRARY(gnc-goffice ${goffice_noinst_HEADERS} ${goffice_SOURCES})
|
||||
|
||||
#TARGET_LINK_LIBRARIES(gnc-goffice ${GTK_LIBS} ${LIBXML2_LIBS})
|
||||
#TARGET_INCLUDE_DIRECTORIES(gnc-goffice PUBLIC ${GTK_CFLAGS} ${LIBXML2_CFLAGS})
|
||||
|
||||
#INSTALL(TARGETS gnc-goffice
|
||||
# LIBRARY DESTINATION lib
|
||||
# ARCHIVE DESTINATION lib
|
||||
# RUNTIME DESTINATION bin)
|
||||
|
||||
SET_DIST_LIST(goffice_DIST CMakeLists.txt Makefile.am ${goffice_noinst_HEADERS} ${goffice_SOURCES})
|
||||
@ -0,0 +1,4 @@
|
||||
SET(libc_SOURCES libc-missing-noop.c setenv.c strfmon.c strptime.c)
|
||||
SET(libc_HEADERS pow.h setenv.h strfmon.h strptime.h)
|
||||
|
||||
SET_DIST_LIST(libc_DIST CMakeLists.txt Makefile.am ${libc_SOURCES} ${libc_HEADERS})
|
||||
@ -0,0 +1,3 @@
|
||||
|
||||
SET_DIST_LIST(macros_DIST ax_pkg_swig.m4 ax_python_devel.m4 ax_swig_python.m4 binreloc.m4
|
||||
compiler-flags.m4 CMakeLists.txt legacy_macros.m4 pkg.m4)
|
||||
@ -1,2 +1,4 @@
|
||||
|
||||
GNC_CONFIGURE(gnucash.spec.in gnucash.spec)
|
||||
|
||||
SET_DIST_LIST(packaging_DIST CMakeLists.txt gnucash.spec.in Makefile.am)
|
||||
@ -0,0 +1,23 @@
|
||||
|
||||
# Run intltool-update -m to check for missing files in POTFILES.in
|
||||
# We detect failure by looking for the presence of a 'missing' file.
|
||||
|
||||
# Intltool returns a zero status whether or not the check failed.
|
||||
|
||||
FILE(REMOVE ${PO_DIR}/missing)
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E env ${INTLTOOL_UPDATE} -m
|
||||
WORKING_DIRECTORY ${PO_DIR}
|
||||
)
|
||||
ELSE()
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${INTLTOOL_UPDATE} -m
|
||||
WORKING_DIRECTORY ${PO_DIR}
|
||||
RESULT_VARIABLE UPDATE_RESULT
|
||||
)
|
||||
MESSAGE("UPDATE_RESULT = ${UPDATE_RESULT}")
|
||||
ENDIF()
|
||||
IF (EXISTS ${PO_DIR}/missing)
|
||||
MESSAGE(FATAL_ERROR "POTFILES.in is missing files. See 'missing' in ${PO_DIR}")
|
||||
ENDIF()
|
||||
@ -0,0 +1,3 @@
|
||||
|
||||
SET_DIST_LIST(po_glossary_DIST CMakeLists.txt bg.po ca.po da.po de.po el.po es_NI-policy.txt es.po fr.po gnc-glossary.txt he.po
|
||||
hu.po it.po nb.po nl.po pl.po pt_BR.po pt.po ru.po rw.po sk.po sv.po txt-to-pot.sh vi.po zh_CN.po zh_TW.po)
|
||||
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
INTLTOOL_EXTRACT=@INTLTOOL_EXTRACT@
|
||||
XGETTEXT=@XGETTEXT@
|
||||
INTLTOOL_UPDATE=@INTLTOOL_UPDATE@
|
||||
SOURCE_DIR=@CMAKE_CURRENT_SOURCE_DIR@
|
||||
PACKAGE=@PACKAGE@
|
||||
cd $SOURCE_DIR && $INTLTOOL_UPDATE --gettext-package $PACKAGE --pot
|
||||
@ -0,0 +1,11 @@
|
||||
|
||||
ADD_SUBDIRECTORY(xml)
|
||||
IF (WITH_SQL)
|
||||
ADD_SUBDIRECTORY (dbi)
|
||||
ADD_SUBDIRECTORY (sql)
|
||||
ENDIF (WITH_SQL)
|
||||
|
||||
|
||||
|
||||
SET_LOCAL_DIST(backend_DIST_local CMakeLists.txt Makefile.am)
|
||||
SET(backend_DIST ${backend_DIST_local} ${backend_dbi_DIST} ${backend_sql_DIST} ${backend_xml_DIST} PARENT_SCOPE)
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
ADD_SUBDIRECTORY(xml2)
|
||||
|
||||
SET_LOCAL_DIST(test_backend_xml_test_files_DIST_local CMakeLists.txt Makefile.am)
|
||||
SET(test_backend_xml_test_files_DIST ${test_backend_xml_test_files_DIST_local} ${xml2_DIST} PARENT_SCOPE)
|
||||
|
||||
@ -0,0 +1,4 @@
|
||||
|
||||
SET_DIST_LIST(xml2_DIST abcall.gml2 abc.gml2 carols-data-file.gml2 cbb-export.gml2 CMakeLists.txt conrads-file.gml2
|
||||
every.gml2 goonies-file.gml2 hierachical-data-file.gml2 Makefile.am Money95bank_fr.gml2
|
||||
Money95invst.gml2 Money95mutual.gml2 Money95stocks.gml2 ms-money.gml2 pricedb1.gml2)
|
||||
@ -1,3 +1,6 @@
|
||||
CONFIGURE_FILE(test-version.in test-version)
|
||||
|
||||
ADD_TEST(NAME test-version
|
||||
COMMAND ${CMAKE_BINARY_DIR}/bin/gnucash --version)
|
||||
COMMAND ${CMAKE_BINARY_DIR}/bin/gnucash --version)
|
||||
|
||||
SET_DIST_LIST(test_bin_DIST CMakeLists.txt Makefile.am test-version.in)
|
||||
@ -0,0 +1,5 @@
|
||||
ADD_SUBDIRECTORY(business-gnome)
|
||||
ADD_SUBDIRECTORY(business-ledger)
|
||||
|
||||
SET_LOCAL_DIST(business_DIST_local CMakeLists.txt Makefile.am)
|
||||
SET(business_DIST ${business_DIST_local} ${business_gnome_DIST} ${business_ledger_DIST} PARENT_SCOPE)
|
||||
@ -1,4 +1,6 @@
|
||||
|
||||
SET(business_gnome_GSCHEMA org.gnucash.dialogs.business.gschema.xml)
|
||||
|
||||
ADD_GSCHEMA_TARGETS(business-gnome-gschema "${business_gnome_GSCHEMA}")
|
||||
ADD_GSCHEMA_TARGETS(business-gnome-gschema "${business_gnome_GSCHEMA}")
|
||||
|
||||
SET_DIST_LIST(business_gnome_gschema_DIST CMakeLists.txt Makefile.am org.gnucash.dialogs.business.gschema.xml.in.in)
|
||||
@ -1,12 +1,16 @@
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY .
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash/gtkbuilder
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
ENDIF()
|
||||
FILE(COPY .
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash/gtkbuilder
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
|
||||
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DESTINATION share/gnucash
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
DESTINATION share/gnucash
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
|
||||
SET(business_gnome_GLADE business-options-gnome.glade business-prefs.glade dialog-billterms.glade dialog-choose-owner.glade
|
||||
dialog-customer.glade dialog-date-close.glade dialog-employee.glade dialog-invoice.glade dialog-job.glade
|
||||
dialog-order.glade dialog-payment.glade dialog-vendor.glade)
|
||||
|
||||
SET_DIST_LIST(business_gnome_gtkbuilder_DIST CMakeLists.txt Makefile.am ${business_gnome_GLADE})
|
||||
@ -1,12 +1,12 @@
|
||||
|
||||
IF (GNC_BUILD_AS_INSTALL)
|
||||
FILE(COPY .
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash/ui
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
ENDIF()
|
||||
FILE(COPY .
|
||||
DESTINATION ${DATADIR_BUILD}/gnucash/ui
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
|
||||
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
DESTINATION share/gnucash
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
DESTINATION share/gnucash
|
||||
PATTERN Makefile.* EXCLUDE
|
||||
PATTERN CMakeLists.txt EXCLUDE)
|
||||
|
||||
SET(business_gnome_UI gnc-plugin-business-ui.xml gnc-plugin-page-invoice-ui.xml gnc-plugin-page-owner-tree-ui.xml)
|
||||
SET_DIST_LIST(business_gnome_ui_DIST CMakeLists.txt Makefile.am ${business_gnome_UI})
|
||||
@ -0,0 +1,6 @@
|
||||
|
||||
SET(cmake_FILES GncAddGSchemaTargets.cmake GncAddSchemeTargets.cmake GncAddSwigCommand.cmake GncAddTest.cmake
|
||||
GncConfigure.cmake GncFindPkgConfig.cmake MacroAddSourceFileCompileFlags.cmake MacroAppendForeach.cmake
|
||||
MakeDist.cmake MakeDistFiles.cmake MakeDistCheck.cmake)
|
||||
|
||||
SET_DIST_LIST(cmake_modules_DIST CMakeLists.txt COPYING-CMAKE-SCRIPTS.txt ${cmake_FILES})
|
||||
@ -0,0 +1,207 @@
|
||||
# This file implements the process of making source distributio tarballs. It expects to find list in
|
||||
# 'dist_manifest.txt' of all of the files to be included in the distribution, EXCEPT those
|
||||
# files that are generated. The list of generated files is specified in MakeDistFiles.cmake in the
|
||||
# COPY_FROM_BUILD and COPY_FROM_BUILD_2 variables.
|
||||
#
|
||||
# Given all of these files, the procedure is to:
|
||||
# 1. Remove any existing dist directory and make a new one.
|
||||
# 2. Copy of all the files in dist_manifest.text, COPY_FROM_BUILD and COPY_FROM_BUILD_2
|
||||
# into the dist directory.
|
||||
# 3. Run autogen.sh if build a dist from Git.
|
||||
# 4. Create the tarball and compress it with gzip and bzip2.
|
||||
# 5. Then remove the dist directory.
|
||||
|
||||
include(${CMAKE_MODULE_PATH}/MakeDistFiles.cmake)
|
||||
|
||||
FUNCTION(FIND_AUTOMAKE AUTOMAKE_VAR ACLOCAL_VAR AUTOMAKE_VERSION_VAR NEED_OVERRIDE_VAR)
|
||||
FIND_PROGRAM(AUTOMAKE automake)
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${AUTOMAKE} --version
|
||||
RESULT_VARIABLE AUTOMAKE_RESULT
|
||||
OUTPUT_VARIABLE AUTOMAKE_OUTPUT
|
||||
ERROR_VARIABLE AUTOMAKE_ERROR
|
||||
)
|
||||
|
||||
# GnuCash will not pass distcheck under automake 1.15+
|
||||
# See if automake-1.11 is available. If so use, that
|
||||
SET(AUTOMAKE_OK TRUE)
|
||||
SET(NEED_OVERRIDE FALSE)
|
||||
IF(${AUTOMAKE} STREQUAL AUTOMAKE-NOTFOUND)
|
||||
SET(AUTOMAKE_OK FALSE)
|
||||
ELSE()
|
||||
STRING(REGEX REPLACE ".*automake \\(GNU automake\\) ([0-9]\\.[0-9]+).*" "\\1" AUTOMAKE_VERSION "${AUTOMAKE_OUTPUT}")
|
||||
|
||||
IF (${AUTOMAKE_VERSION} VERSION_GREATER "1.14")
|
||||
SET(AUTOMAKE_OK FALSE)
|
||||
ELSE()
|
||||
FIND_PROGRAM(ACLOCAL aclocal)
|
||||
IF(${ACLOCAL} STREQUAL ACLOCAL-NOTFOUND)
|
||||
MESSAGE(FATAL_ERROR "Found ok version of automake, but can't find aclocal")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
IF (NOT AUTOMAKE_OK)
|
||||
FIND_PROGRAM(AUTOMAKE11 automake-1.11)
|
||||
IF (${AUTOMAKE11} STREQUAL AUTOMAKE11-NOTFOUND)
|
||||
IF (${AUTOMAKE} STREQUAL AUTOMAKE-NOTFOUND)
|
||||
MESSAGE(FATAL_ERROR "Can't find 'automake' or 'automake-1.11'")
|
||||
ELSE()
|
||||
MESSAGE("Automake is incompatible version 1.15+, but can't find automake-1.11")
|
||||
MESSAGE(" You can set AUTOTOOLS_IN_DIST=OFF to exclude autotools support.")
|
||||
MESSAGE(FATAL_ERROR "automake not compatible")
|
||||
ENDIF()
|
||||
ELSE()
|
||||
SET(AUTOMAKE ${AUTOMAKE11})
|
||||
SET(AUTOMAKE_VERSION 1.11)
|
||||
SET(NEED_OVERRIDE TRUE)
|
||||
FIND_PROGRAM(ACLOCAL aclocal-1.11)
|
||||
IF(${ACLOCAL} STREQUAL ACLOCAL-NOTFOUND)
|
||||
MESSAGE(FATAL_ERROR "Found automake-1.11, but not aclocal-1.11")
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
ENDIF()
|
||||
SET(${AUTOMAKE_VAR} ${AUTOMAKE} PARENT_SCOPE)
|
||||
SET(${ACLOCAL_VAR} ${ACLOCAL} PARENT_SCOPE)
|
||||
SET(${AUTOMAKE_VERSION_VAR} ${AUTOMAKE_VERSION} PARENT_SCOPE)
|
||||
SET(${NEED_OVERRIDE_VAR} ${NEED_OVERRIDE} PARENT_SCOPE)
|
||||
ENDFUNCTION()
|
||||
|
||||
|
||||
FUNCTION(MAKE_DIST PACKAGE_PREFIX GNUCASH_SOURCE_DIR BUILD_SOURCE_DIR BUILDING_FROM_VCS)
|
||||
|
||||
SET(CMAKE_COMMAND_TMP "")
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(CMAKE_COMMAND_TMP ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
|
||||
# -- Remove any existing packaging directory.
|
||||
FILE(REMOVE_RECURSE ${PACKAGE_PREFIX})
|
||||
|
||||
IF (EXISTS ${PACKAGE_PREFIX})
|
||||
MESSAGE(FATAL_ERROR "Unable to remove existing dist directory \"${PACKAGE_PREFIX}\". Cannot continue.")
|
||||
ENDIF()
|
||||
|
||||
|
||||
# -- Copy in distributed files
|
||||
IF(NOT EXISTS dist_manifest.txt)
|
||||
message(FATAL_ERROR "Cannot find dist manifest: dist_manifest.txt")
|
||||
ENDIF()
|
||||
|
||||
file(STRINGS dist_manifest.txt ALL_DIST)
|
||||
|
||||
FOREACH(file ${ALL_DIST})
|
||||
IF(NOT EXISTS ${GNUCASH_SOURCE_DIR}/${file})
|
||||
MESSAGE(FATAL_ERROR "Can't find dist file ${GNUCASH_SOURCE_DIR}/${file}")
|
||||
ENDIF()
|
||||
GET_FILENAME_COMPONENT(dir ${file} DIRECTORY)
|
||||
FILE(MAKE_DIRECTORY ${PACKAGE_PREFIX}/${dir})
|
||||
FILE(COPY ${GNUCASH_SOURCE_DIR}/${file} DESTINATION ${PACKAGE_PREFIX}/${dir})
|
||||
ENDFOREACH()
|
||||
|
||||
# -- Copy in build products that are distributed.
|
||||
|
||||
FOREACH(file ${COPY_FROM_BUILD} ${COPY_FROM_BUILD_2})
|
||||
EXECUTE_PROCESS(COMMAND ${CMAKE_COMMAND} -E copy ${BUILD_SOURCE_DIR}/${file} ${PACKAGE_PREFIX}/${file})
|
||||
IF (NOT EXISTS ${PACKAGE_PREFIX}/${file})
|
||||
MESSAGE(FATAL_ERROR "Copy of ${BUILD_SOURCE_DIR}/${file} to dist dir '${PACKAGE_PREFIX}' failed.")
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
|
||||
|
||||
CMAKE_POLICY(SET CMP0012 NEW)
|
||||
|
||||
IF (${BUILDING_FROM_VCS} AND AUTOTOOLS_IN_DIST)
|
||||
FIND_AUTOMAKE(AUTOMAKE ACLOCAL AUTOMAKE_VERSION NEED_OVERRIDE)
|
||||
# -- Run autogen.sh to cause Makefile.in files to be created.
|
||||
SET(CMAKE_COMMAND_AUTOTOOLS ${SHELL} -c)
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(CMAKE_COMMAND_AUTOTOOLS ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
IF (${NEED_OVERRIDE})
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND_AUTOTOOLS} AUTOMAKE=${AUTOMAKE} ACLOCAL=${ACLOCAL} ./autogen.sh
|
||||
WORKING_DIRECTORY ${PACKAGE_PREFIX}
|
||||
RESULT_VARIABLE AUTOGEN_RESULT
|
||||
OUTPUT_VARIABLE AUTOGEN_OUTPUT
|
||||
)
|
||||
ELSE()
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND_AUTOTOOLS} ./autogen.sh
|
||||
WORKING_DIRECTORY ${PACKAGE_PREFIX}
|
||||
RESULT_VARIABLE AUTOGEN_RESULT
|
||||
OUTPUT_VARIABLE AUTOGEN_OUTPUT
|
||||
)
|
||||
ENDIF()
|
||||
IF(NOT ${AUTOGEN_RESULT} STREQUAL "0")
|
||||
MESSAGE(FATAL_ERROR "autogen.sh step failed: ${AUTOGEN_RESULT}")
|
||||
ENDIF()
|
||||
# -- Remove autogen files as they are not distributed.
|
||||
|
||||
FILE(REMOVE ${PACKAGE_PREFIX}/autogen.sh)
|
||||
FILE(REMOVE_RECURSE ${PACKAGE_PREFIX}/autom4te.cache)
|
||||
|
||||
# -- Autogen.sh creates some files a symbolic links that we turn into real files here.
|
||||
|
||||
IF (UNIX) # No symbolic links on Windows
|
||||
SET(LINKS missing config.guess COPYING depcomp INSTALL install-sh config.sub compile)
|
||||
IF(${AUTOMAKE_VERSION} VERSION_GREATER 1.11)
|
||||
LIST(APPEND LINKS test-driver)
|
||||
ENDIF()
|
||||
FOREACH(link ${LINKS})
|
||||
GET_FILENAME_COMPONENT(realpath ${PACKAGE_PREFIX}/${link} REALPATH)
|
||||
FILE(REMOVE ${PACKAGE_PREFIX}/${link})
|
||||
FILE(COPY ${realpath} DESTINATION ${PACKAGE_PREFIX})
|
||||
ENDFOREACH(link)
|
||||
|
||||
FOREACH(link src/doc/design/mdate-sh src/doc/design/texinfo.tex)
|
||||
GET_FILENAME_COMPONENT(dir ${link} DIRECTORY)
|
||||
GET_FILENAME_COMPONENT(realpath ${PACKAGE_PREFIX}/${link} REALPATH)
|
||||
FILE(REMOVE ${PACKAGE_PREFIX}/${link})
|
||||
FILE(COPY ${realpath} DESTINATION ${PACKAGE_PREFIX}/${dir})
|
||||
ENDFOREACH(link)
|
||||
ENDIF(UNIX)
|
||||
|
||||
ENDIF()
|
||||
|
||||
# -- Create the tarball.
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND} -E tar cf ${PACKAGE_PREFIX}.tar ${PACKAGE_PREFIX}
|
||||
WORKING_DIRECTORY .
|
||||
ERROR_MSG "tar command to create ${PACKAGE_PREFIX}.tar failed."
|
||||
)
|
||||
|
||||
# -- Compress the tarball with gzip
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${PACKAGE_PREFIX}.tar ${PACKAGE_PREFIX}.tar.save
|
||||
)
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND_TMP} gzip -f ${PACKAGE_PREFIX}.tar
|
||||
WORKING_DIRECTORY .
|
||||
ERROR_MSG "gzip command to create ${PACKAGE_PREFIX}.tar.gz failed."
|
||||
)
|
||||
|
||||
# -- Compress the tarball with bzip2
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${CMAKE_COMMAND} -E rename ${PACKAGE_PREFIX}.tar.save ${PACKAGE_PREFIX}.tar
|
||||
)
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND_TMP} bzip2 -f ${PACKAGE_PREFIX}.tar
|
||||
WORKING_DIRECTORY .
|
||||
ERROR_MSG "bzip2 command to create ${PACKAGE_PREFIX}.tar.bz2 failed."
|
||||
)
|
||||
|
||||
# -- Clean up packaging directory.
|
||||
|
||||
FILE(REMOVE_RECURSE ${PACKAGE_PREFIX})
|
||||
|
||||
IF(EXISTS ${PACKAGE_PREFIX})
|
||||
MESSAGE(WARNING "Could not remove packaging directory '${PACKAGE_PREFIX}'")
|
||||
ENDIF()
|
||||
|
||||
# -- All done.
|
||||
|
||||
MESSAGE("\n\nDistributions ${PACKAGE_PREFIX}.tar.gz and ${PACKAGE_PREFIX}.tar.bz2 created.\n\n")
|
||||
ENDFUNCTION()
|
||||
|
||||
MAKE_DIST(${PACKAGE_PREFIX} ${GNUCASH_SOURCE_DIR} ${BUILD_SOURCE_DIR} ${BUILDING_FROM_VCS})
|
||||
@ -0,0 +1,158 @@
|
||||
|
||||
include(MakeDistFiles)
|
||||
|
||||
FUNCTION(RUN_DIST_CHECK PACKAGE_PREFIX EXT)
|
||||
|
||||
SET(tarball ${PACKAGE_PREFIX}.tar${EXT})
|
||||
IF (NOT EXISTS ${tarball})
|
||||
MESSAGE(FATAL_ERROR "Can't find dist tarball '${tarball}'")
|
||||
ENDIF()
|
||||
|
||||
# Remove the directory we're about to extract to
|
||||
FILE(REMOVE_RECURSE ${PACKAGE_PREFIX})
|
||||
|
||||
# Untar the distribution we want to check
|
||||
SET(TAR_OPTION "zxf")
|
||||
IF (${EXT} STREQUAL ".bz2")
|
||||
SET(TAR_OPTION "jxf")
|
||||
ENDIF()
|
||||
|
||||
SET(MY_CMAKE_COMMAND "")
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(MY_CMAKE_COMMAND ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
|
||||
FIND_PROGRAM(NINJA_COMMAND NAMES ninja ninja-build)
|
||||
IF (${NINJA_COMMAND} STREQUAL "NINJA_COMMAND-NOTFOUND")
|
||||
MESSAGE(FATAL_ERROR "Can't find the 'ninja' or 'ninja-build' program.")
|
||||
ENDIF ()
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND} -E tar ${TAR_OPTION} ${tarball}
|
||||
WORKING_DIRECTORY .
|
||||
ERROR_MSG "Command to untar ${tarball} failed."
|
||||
)
|
||||
|
||||
# Officially, I should make the contents of the untarred dist directory read-only,
|
||||
# but that will cause the build to fail (intltool is unhappy).
|
||||
|
||||
# Create a build directory and configure the Cmake build
|
||||
|
||||
SET(BUILD_DIR "_cmake_build")
|
||||
SET(INSTALL_DIR "_cmake_install")
|
||||
FILE(REMOVE_RECURSE ${BUILD_DIR} ${INSTALL_DIR})
|
||||
|
||||
FILE(MAKE_DIRECTORY ${BUILD_DIR} ${INSTALL_DIR})
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${CMAKE_COMMAND} -G Ninja
|
||||
-D CMAKE_C_FLAGS=${CMAKE_C_FLAGS}
|
||||
-D CMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS}
|
||||
-D CMAKE_PREFIX_PATH=${CMAKE_PREFIX_PATH}
|
||||
-D CMAKE_INSTALL_PREFIX=../${INSTALL_DIR}
|
||||
-D AUTOTOOLS_IN_DIST=${AUTOTOOLS_IN_DIST}
|
||||
../${PACKAGE_PREFIX}
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "CMake configure command failed."
|
||||
)
|
||||
|
||||
# Run ninja in the build directory
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} ${NINJA_COMMAND}
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Ninja build failed."
|
||||
)
|
||||
|
||||
# Run ninja install
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} ${NINJA_COMMAND} install
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Ninja install failed."
|
||||
)
|
||||
|
||||
# Run ninja check in the build directory
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} ${NINJA_COMMAND} check
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Ninja check failed."
|
||||
)
|
||||
|
||||
# Run ninja dist
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} ${NINJA_COMMAND} dist
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Ninja dist failed."
|
||||
)
|
||||
|
||||
MESSAGE("distcheck complete.")
|
||||
|
||||
ENDFUNCTION()
|
||||
|
||||
FUNCTION(RUN_AUTOTOOLS_DIST_CHECK PACKAGE_PREFIX)
|
||||
# We assume that the RUN_DIST_CHECK() function has been run so that we can
|
||||
# use the untarred distribution created by that step.
|
||||
SET(BUILD_DIR ${PACKAGE_PREFIX})
|
||||
SET(INSTALL_DIR "_cmake_install_autotools")
|
||||
FILE(REMOVE_RECURSE ${INSTALL_DIR})
|
||||
FILE(MAKE_DIRECTORY ${INSTALL_DIR})
|
||||
|
||||
SET(MY_CMAKE_COMMAND "")
|
||||
IF (${CMAKE_VERSION} VERSION_GREATER 3.1)
|
||||
SET(MY_CMAKE_COMMAND ${CMAKE_COMMAND} -E env)
|
||||
ENDIF()
|
||||
|
||||
IF(CMAKE_PREFIX_PATH)
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND}
|
||||
LDFLAGS=-L${CMAKE_PREFIX_PATH}/lib
|
||||
CFLAGS=${CMAKE_C_FLAGS}
|
||||
CXXFLAGS=${CMAKE_CXX_FLAGS}
|
||||
CPPFLAGS=-I${CMAKE_PREFIX_PATH}/include
|
||||
PATH=${CMAKE_PREFIX_PATH}/bin:$ENV{PATH}
|
||||
./configure --prefix=${CMAKE_CURRENT_SOURCE_DIR}/${INSTALL_DIR} --enable-compile-warnings
|
||||
--with-dbi-dbd-dir=${CMAKE_PREFIX_PATH}/lib/dbd
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'configure' step failed."
|
||||
)
|
||||
|
||||
ELSE()
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND}
|
||||
./configure --prefix=${CMAKE_CURRENT_SOURCE_DIR}/${INSTALL_DIR} --enable-compile-warnings
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'configure' step failed."
|
||||
)
|
||||
ENDIF()
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} make -j 4
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'make' step failed."
|
||||
)
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} make check
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'make check' step failed."
|
||||
)
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} make install
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'make install' step failed."
|
||||
)
|
||||
|
||||
EXECUTE_PROCESS_AND_CHECK_RESULT(
|
||||
COMMAND ${MY_CMAKE_COMMAND} make uninstall
|
||||
WORKING_DIRECTORY ${BUILD_DIR}
|
||||
ERROR_MSG "Autotools 'make uninstall' step failed."
|
||||
)
|
||||
|
||||
MESSAGE("Autotools distcheck complete.")
|
||||
|
||||
ENDFUNCTION()
|
||||
|
||||
RUN_DIST_CHECK(${PACKAGE_PREFIX} .gz)
|
||||
IF (AUTOTOOLS_IN_DIST)
|
||||
RUN_AUTOTOOLS_DIST_CHECK(${PACKAGE_PREFIX})
|
||||
ENDIF()
|
||||
@ -0,0 +1,124 @@
|
||||
|
||||
IF (${CMAKE_VERSION} VERSION_LESS 3.3)
|
||||
INCLUDE(CMakeParseArguments)
|
||||
ENDIF()
|
||||
|
||||
|
||||
FUNCTION(SET_LOCAL_DIST output)
|
||||
SET(dist_files "")
|
||||
FOREACH(file ${ARGN})
|
||||
FILE(RELATIVE_PATH relative ${CMAKE_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/${file})
|
||||
LIST(APPEND dist_files ${relative})
|
||||
ENDFOREACH()
|
||||
SET (${output} ${dist_files} PARENT_SCOPE)
|
||||
ENDFUNCTION()
|
||||
|
||||
MACRO(SET_DIST_LIST output)
|
||||
SET_LOCAL_DIST(${output}_TMP ${ARGN})
|
||||
SET(${output} ${${output}_TMP} PARENT_SCOPE)
|
||||
ENDMACRO()
|
||||
|
||||
FUNCTION(EXECUTE_PROCESS_AND_CHECK_RESULT)
|
||||
cmake_parse_arguments(VARS "" "WORKING_DIRECTORY;ERROR_MSG" "COMMAND" ${ARGN})
|
||||
EXECUTE_PROCESS(
|
||||
COMMAND ${VARS_COMMAND}
|
||||
WORKING_DIRECTORY ${VARS_WORKING_DIRECTORY}
|
||||
RESULT_VARIABLE RESULT
|
||||
)
|
||||
IF (NOT "${RESULT}" STREQUAL "0")
|
||||
MESSAGE(FATAL_ERROR ${VARS_ERROR_MSG})
|
||||
ENDIF()
|
||||
ENDFUNCTION()
|
||||
|
||||
|
||||
# This is a list of files generated at build time that
|
||||
# should be copied into the dist tarball. An item in
|
||||
# this list should be a file, not a directory or glob.
|
||||
# File in this list become dependenices of the 'dist'
|
||||
# target.
|
||||
|
||||
|
||||
SET(COPY_FROM_BUILD
|
||||
ChangeLog
|
||||
src/app-utils/migratable-prefs.xml
|
||||
src/app-utils/swig-app-utils-guile.c
|
||||
src/app-utils/swig-app-utils-python.c
|
||||
src/app-utils/test/test-load-module
|
||||
src/backend/xml/test/test-real-data.sh
|
||||
src/bin/gnucash.rc
|
||||
src/bin/overrides/gnucash-make-guids
|
||||
src/bin/test/test-version
|
||||
src/core-utils/gnc-vcs-info.h
|
||||
src/core-utils/swig-core-utils-guile.c
|
||||
src/core-utils/swig-core-utils-python.c
|
||||
src/doc/design/gnucash-design.info
|
||||
src/engine/iso-4217-currencies.c
|
||||
src/engine/swig-engine.c
|
||||
src/engine/test/test-create-account
|
||||
src/engine/test/test-scm-query-import
|
||||
src/gnc-module/swig-gnc-module.c
|
||||
src/gnc-module/test/mod-bar/swig-bar.c
|
||||
src/gnc-module/test/mod-baz/swig-baz.c
|
||||
src/gnc-module/test/mod-foo/swig-foo.c
|
||||
src/gnc-module/test/test-gwrapped-c
|
||||
src/gnc-module/test/test-load-deps
|
||||
src/gnc-module/test/test-load-scm
|
||||
src/gnc-module/test/test-scm-dynload
|
||||
src/gnc-module/test/test-scm-init
|
||||
src/gnc-module/test/test-scm-module
|
||||
src/gnc-module/test/test-scm-multi
|
||||
src/gnome/gnucash.desktop.in
|
||||
src/gnome/swig-gnome.c
|
||||
src/gnome-utils/gnc-warnings.c
|
||||
src/gnome-utils/swig-gnome-utils.c
|
||||
src/gnome-utils/test/test-load-module
|
||||
src/html/swig-gnc-html.c
|
||||
src/optional/python-bindings/gnucash_core.c
|
||||
src/report/report-gnome/swig-report-gnome.c
|
||||
src/report/report-gnome/test/test-load-module
|
||||
src/report/report-system/swig-report-system.c
|
||||
src/report/report-system/test/test-load-module
|
||||
src/report/standard-reports/test/test-load-module
|
||||
src/report/stylesheets/test/test-load-module
|
||||
src/report/utility-reports/test/test-load-module
|
||||
src/scm/build-config.scm
|
||||
src/swig-runtime.h
|
||||
src/test-core/swig-unittest-support-guile.c
|
||||
src/test-core/swig-unittest-support-python.c
|
||||
)
|
||||
|
||||
# This list is similiar to the COPY_FROM_BUILD list
|
||||
# above, except that we don't create an explicit
|
||||
# dependency on this for the 'dist' target. I need
|
||||
# to fix the creation of these files so that we
|
||||
# can add the as dependencies for 'dist'. These
|
||||
# file are not generated using CONFIGURE_FILE(),
|
||||
# so CMake does not realize these are generated files.
|
||||
|
||||
# Items marked with GNC_CONFIGURE can be
|
||||
# properly generated when we drop autotools, because
|
||||
# then the source file can use the @XXX@ convention
|
||||
# instead of @-XXX-@
|
||||
|
||||
SET(COPY_FROM_BUILD_2
|
||||
doc/gnucash.1 # Uses GNC_CONFIGURE
|
||||
packaging/gnucash.spec # Uses GNC_CONFIGURE
|
||||
po/gnucash.pot
|
||||
src/doc/design/stamp-vti
|
||||
src/doc/design/version.texi
|
||||
src/pixmaps/128x128/gnucash-icon.png
|
||||
src/pixmaps/16x16/gnucash-icon.png
|
||||
src/pixmaps/22x22/gnucash-icon.png
|
||||
src/pixmaps/24x24/gnucash-icon.png
|
||||
src/pixmaps/256x256/gnucash-icon.png
|
||||
src/pixmaps/32x32/gnucash-icon.png
|
||||
src/pixmaps/48x48/gnucash-icon.png
|
||||
src/pixmaps/64x64/gnucash-icon.png
|
||||
src/pixmaps/96x96/gnucash-icon.png
|
||||
src/pixmaps/gnucash-icon-16x16.png
|
||||
src/pixmaps/gnucash-icon-32x32.png
|
||||
src/pixmaps/scalable/gnucash-icon.svg
|
||||
src/optional/python-bindings/gnucash_core_c.py
|
||||
src/test-core/unittest_support.py
|
||||
|
||||
)
|
||||
@ -0,0 +1,4 @@
|
||||
ADD_SUBDIRECTORY(valgrind)
|
||||
|
||||
SET_LOCAL_DIST(debug_DIST_local CMakeLists.txt Makefile.am)
|
||||
SET(debug_DIST ${debug_DIST_local} ${valgrind_DIST} PARENT_SCOPE)
|
||||
@ -0,0 +1,11 @@
|
||||
SET(valgrind_FILES
|
||||
valgrind-gdk.supp
|
||||
valgrind-glib.supp
|
||||
valgrind-gnucash.supp
|
||||
valgrind-libfontconfig.supp
|
||||
valgrind-libgda.supp
|
||||
valgrind-libguile.supp
|
||||
valgrind-x11.supp
|
||||
)
|
||||
|
||||
SET_DIST_LIST(valgrind_DIST CMakeLists.txt Makefile.am ${valgrind_FILES})
|
||||
@ -0,0 +1,38 @@
|
||||
ADD_SUBDIRECTORY(design)
|
||||
ADD_SUBDIRECTORY(xml)
|
||||
|
||||
SET(doc_FILES
|
||||
backup.txt
|
||||
books.txt
|
||||
budget.txt
|
||||
# business.txt
|
||||
callgrind.txt
|
||||
constderv.html
|
||||
# constraints.txt
|
||||
currencies.txt
|
||||
doxygen.cfg.in
|
||||
doxygen_main_page.c
|
||||
# engine.txt
|
||||
finderv.html
|
||||
finutil.html
|
||||
# g2-architecture.txt
|
||||
generic-druid-framework.txt
|
||||
# gnc-numeric-example.txt
|
||||
guid.txt
|
||||
loans.txt
|
||||
lots.txt
|
||||
multicurrency-discussion.txt
|
||||
# prices.txt
|
||||
python-bindings-doxygen.py
|
||||
qif.txt
|
||||
README
|
||||
# sx.rst
|
||||
tax.txt
|
||||
TODO-schedxactions
|
||||
TODO-sixtp
|
||||
user-prefs-howto.txt
|
||||
)
|
||||
|
||||
SET_LOCAL_DIST(doc_DIST_local CMakeLists.txt Makefile.am ${doc_FILES})
|
||||
SET(doc_DIST ${doc_DIST_local} ${doc_design_DIST} ${doc_xml_DIST} PARENT_SCOPE)
|
||||
|
||||
@ -0,0 +1,15 @@
|
||||
SET(doc_xml_FILES
|
||||
account-v2.dtd
|
||||
commodity-v2.dtd
|
||||
defaults-v1.dtd
|
||||
# gnucash-v2.rnc
|
||||
io-gncxml-version1.dtd
|
||||
io-gncxml-version2.dtd
|
||||
preferences-v1.dtd
|
||||
prices-v1.dtd
|
||||
README
|
||||
transactions-v2.dtd
|
||||
types.dtd
|
||||
)
|
||||
|
||||
SET_DIST_LIST(doc_xml_DIST CMakeLists.txt Makefile.am ${doc_xml_FILES})
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue