diff options
author | fuzzard <fuzzard@kodi.tv> | 2022-04-18 01:35:50 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2022-04-18 01:35:50 +1000 |
commit | bf261ff15c1f8c152d554e66f9b6ba9320613f45 (patch) | |
tree | 4a4a02b6ec0445848e3aedeb988c04cebbbc0636 /tools/depends/target/expat/Makefile | |
parent | d89c10711a535e572db1f093dbed9da0eed9fb6a (diff) |
[tools/depends][target] expat use cmake build
Migrate to cmake build system from autoconf based
Diffstat (limited to 'tools/depends/target/expat/Makefile')
-rw-r--r-- | tools/depends/target/expat/Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/tools/depends/target/expat/Makefile b/tools/depends/target/expat/Makefile index 4e0ee9d875..a36631b05a 100644 --- a/tools/depends/target/expat/Makefile +++ b/tools/depends/target/expat/Makefile @@ -2,33 +2,32 @@ include ../../Makefile.include EXPAT-VERSION ../../download-files.include DEPS= ../../Makefile.include Makefile EXPAT-VERSION ../../download-files.include # configuration settings -CONFIGURE=cp -f $(CONFIG_SUB) $(CONFIG_GUESS) ./conftools; \ - ./configure --prefix=$(PREFIX) \ - --disable-shared \ - --without-examples \ - --without-tests \ - --without-xmlwf \ - --without-docbook +CMAKE_OPTIONS=-DEXPAT_BUILD_TOOLS=OFF \ + -DEXPAT_BUILD_EXAMPLES=OFF \ + -DEXPAT_BUILD_TESTS=OFF \ + -DEXPAT_SHARED_LIBS=OFF \ + -DEXPAT_BUILD_DOCS=OFF \ + -DEXPAT_BUILD_PKGCONFIG=ON -LIBDYLIB=$(PLATFORM)/lib/.libs/lib$(LIBNAME).a +LIBDYLIB=$(PLATFORM)/build/$(BYPRODUCT) all: .installed-$(PLATFORM) - $(PLATFORM): $(TARBALLS_LOCATION)/$(ARCHIVE).$(HASH_TYPE) $(DEPS) - rm -rf $(PLATFORM)/*; mkdir -p $(PLATFORM) + rm -rf $(PLATFORM); mkdir -p $(PLATFORM) cd $(PLATFORM); $(ARCHIVE_TOOL) $(ARCHIVE_TOOL_FLAGS) $(TARBALLS_LOCATION)/$(ARCHIVE) - cd $(PLATFORM); $(CONFIGURE) + cd $(PLATFORM); mkdir -p build + cd $(PLATFORM)/build; $(CMAKE) $(CMAKE_OPTIONS) .. $(LIBDYLIB): $(PLATFORM) - $(MAKE) -C $(PLATFORM) + $(MAKE) -C $(PLATFORM)/build .installed-$(PLATFORM): $(LIBDYLIB) - $(MAKE) -C $(PLATFORM) install + $(MAKE) -C $(PLATFORM)/build install touch $@ clean: - $(MAKE) -C $(PLATFORM) clean + $(MAKE) -C $(PLATFORM)/build clean rm -f .installed-$(PLATFORM) distclean:: |