tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

Makefile.in (2842B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 
      5 include $(topsrcdir)/toolkit/mozapps/installer/package-name.mk
      6 
      7 CONFIG_DIR = instgen
      8 ifeq ($(TARGET_CPU), aarch64)
      9 SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.ARM64.sfx
     10 else
     11 SFX_MODULE = $(topsrcdir)/other-licenses/7zstub/firefox/7zSD.Win32.sfx
     12 endif
     13 
     14 INSTALLER_FILES = \
     15 app.tag \
     16 nsis/content/installing.html \
     17 nsis/content/installing.js \
     18 nsis/content/profile_cleanup.html \
     19 nsis/content/profile_cleanup.js \
     20 nsis/content/stub_common.css \
     21 nsis/content/stub_common.js \
     22 nsis/installer.nsi \
     23 nsis/uninstaller.nsi \
     24 nsis/stub.nsi \
     25 nsis/stub.nsh \
     26 nsis/stub_shared_defs.nsh \
     27 nsis/shared.nsh \
     28 nsis/control_utils.nsh \
     29 nsis/postupdate_helper.nsh \
     30 nsis/test_stub.nsi \
     31 stub.tag \
     32 $(NULL)
     33 
     34 ifdef MOZ_MAINTENANCE_SERVICE
     35 INSTALLER_FILES += \
     36 nsis/maintenanceservice_installer.nsi \
     37 $(NULL)
     38 endif
     39 
     40 BRANDING_FILES = \
     41 branding.nsi \
     42 firefox64.ico \
     43 stubinstaller/bgstub.jpg \
     44 stubinstaller/installing_page.css \
     45 stubinstaller/profile_cleanup_page.css \
     46 wizHeader.bmp \
     47 wizHeaderRTL.bmp \
     48 wizWatermark.bmp \
     49 $(NULL)
     50 
     51 include $(topsrcdir)/config/config.mk
     52 
     53 ifdef IS_LANGUAGE_REPACK
     54 PPL_LOCALE_ARGS = \
     55  --l10n-dir=$(REAL_LOCALE_MERGEDIR)/browser/installer \
     56  --l10n-dir=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer \
     57  --l10n-dir=$(topsrcdir)/browser/locales/en-US/installer \
     58  $(NULL)
     59 else
     60 PPL_LOCALE_ARGS=$(call EXPAND_LOCALE_SRCDIR,browser/locales)/installer
     61 endif
     62 
     63 install_deps:
     64 $(INSTALL) $(addprefix $(srcdir)/,$(INSTALLER_FILES)) $(CONFIG_DIR)
     65 $(INSTALL) $(addprefix $(topsrcdir)/$(MOZ_BRANDING_DIRECTORY)/,$(BRANDING_FILES)) $(CONFIG_DIR)
     66 $(call py_action,preprocessor defines.nsi,-Fsubstitution $(DEFINES) $(ACDEFINES) \
     67 -DTOPOBJDIR=$(topobjdir) \
     68   $(srcdir)/nsis/defines.nsi.in -o $(CONFIG_DIR)/defines.nsi)
     69 $(PYTHON3) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
     70   --preprocess-locale $(topsrcdir) \
     71   $(PPL_LOCALE_ARGS) $(AB_CD) $(CONFIG_DIR)
     72 $(PYTHON3) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
     73   --preprocess-single-file $(topsrcdir) \
     74   $(PPL_LOCALE_ARGS) $(CONFIG_DIR) \
     75   nsisstrings.properties nsisstrings.nlf
     76 $(PYTHON3) $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/preprocess-locale.py \
     77   --convert-utf8-utf16le \
     78   $(srcdir)/nsis/extensionsLocale.nsh $(CONFIG_DIR)/extensionsLocale.nsh
     79 $(INSTALL) $(addprefix $(MOZILLA_DIR)/other-licenses/nsis/,$(CUSTOM_UI)) $(CONFIG_DIR)
     80 
     81 $(CONFIG_DIR)/setup.exe::
     82 $(RM) -r $(CONFIG_DIR)
     83 $(MKDIR) $(CONFIG_DIR)
     84 $(MAKE) install_deps
     85 
     86 include $(topsrcdir)/config/rules.mk
     87 include $(topsrcdir)/toolkit/mozapps/installer/windows/nsis/makensis.mk