mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
58 lines
1.3 KiB
Makefile
58 lines
1.3 KiB
Makefile
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
INSTALL_TARGETS += GECKOVIEW_LIBRARY
|
|
GECKOVIEW_LIBRARY_DEST = $(CURDIR)
|
|
GECKOVIEW_LIBRARY_FILES := \
|
|
.classpath \
|
|
.project \
|
|
AndroidManifest.xml \
|
|
project.properties \
|
|
build.xml \
|
|
$(NULL)
|
|
|
|
|
|
PP_TARGETS = properties
|
|
|
|
properties = local.properties.in
|
|
properties_PATH = .
|
|
properties_deps := $(patsubst %.in,%,$(properties))
|
|
|
|
GARBAGE = $(GECKOVIEW_LIBRARY_FILES) $(properties_deps)
|
|
|
|
GARBAGE_DIRS = \
|
|
bin \
|
|
libs \
|
|
src \
|
|
.deps \
|
|
gen \
|
|
res \
|
|
$(NULL)
|
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
package: $(properties_deps)
|
|
# Make directory for the zips
|
|
$(MKDIR) -p $(DIST)/geckoview_library
|
|
|
|
# Zip the assets
|
|
cd $(DIST)/fennec; \
|
|
$(ZIP) -r ../geckoview_library/geckoview_assets.zip assets
|
|
|
|
# Make empty directories to fit an Android project structure
|
|
$(MKDIR) -p bin gen libs/$(ABI_DIR) src
|
|
|
|
# Copy the JARs
|
|
cp ../base/*.jar libs/
|
|
|
|
# Copy the SOs
|
|
cp $(DIST)/bin/libmozglue.so $(DIST)/bin/lib/libplugin-container.so libs/$(ABI_DIR)/
|
|
|
|
# Copy the resources
|
|
cp -R ../base/res .
|
|
|
|
# Zip the directory
|
|
cd ..; \
|
|
$(ZIP) -r ../../dist/geckoview_library/geckoview_library.zip geckoview_library --exclude geckoview_library/backend.mk geckoview_library/Makefile
|