]> git.tdb.fi Git - ext/libpng.git/commitdiff
Add MSP build files
authorMikko Rasa <tdb@tdb.fi>
Wed, 2 Aug 2023 09:00:04 +0000 (12:00 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 2 Aug 2023 09:00:04 +0000 (12:00 +0300)
.gitignore
Build [new file with mode: 0644]

index 18696e7235583488fbe356501156c3c72a91fde0..321375d15b21483bf835c86237118870c8e9b402 100644 (file)
@@ -62,6 +62,9 @@ pngprefix.h
 stamp-h1
 vers.out
 
+# Build artifacts under MSP build system
+temp/
+
 # Libpng test artifacts
 png-fix-itxt
 pngcp
diff --git a/Build b/Build
new file mode 100644 (file)
index 0000000..9c89d45
--- /dev/null
+++ b/Build
@@ -0,0 +1,49 @@
+package "libpng"
+{
+       require "zlib";
+
+       library "png"
+       {
+               source "png.c";
+               source "pngerror.c";
+               source "pngget.c";
+               source "pngmem.c";
+               source "pngpread.c";
+               source "pngread.c";
+               source "pngrio.c";
+               source "pngrtran.c";
+               source "pngrutil.c";
+               source "pngset.c";
+               source "pngtrans.c";
+               source "pngwio.c";
+               source "pngwrite.c";
+               source "pngwtran.c";
+               source "pngwutil.c";
+               source "png.h";
+               source "pngconf.h";
+               source "pnglibconf.h";
+               source "pngpriv.h";
+               source "pngdebug.h";
+               source "pnginfo.h";
+               source "pngstruct.h";
+               if_arch "x86"
+               {
+                       source "intel/intel_init.c";
+                       source "intel/filter_sse2_intrinsics.c";
+               };
+               build_info
+               {
+                       define "_CRT_SECURE_NO_WARNINGS" "1";
+                       define "PNG_BUILD_DLL" "1";
+               };
+               install true;
+               install_headers false;
+       };
+
+       install "include"
+       {
+               source "png.h";
+               source "pngconf.h";
+               source "pnglibconf.h";
+       };
+};