summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/bimg/scripts/bimg.lua
blob: 6ea0958cb6a0254eaf2d69e7241118eea77d038f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
--
-- Copyright 2010-2019 Branimir Karadzic. All rights reserved.
-- License: https://github.com/bkaradzic/bx#license-bsd-2-clause
--

project "bimg"
	kind "StaticLib"

	includedirs {
		path.join(BX_DIR, "include"),
		path.join(BIMG_DIR, "include"),
		path.join(BIMG_DIR, "3rdparty/astc-codec"),
		path.join(BIMG_DIR, "3rdparty/astc-codec/include"),
	}

	local ASTC_CODEC_DIR = path.join(BIMG_DIR, "3rdparty/astc-codec")

	files {
		path.join(BIMG_DIR, "include/**"),
		path.join(BIMG_DIR, "src/image.*"),
		path.join(BIMG_DIR, "src/image_gnf.cpp"),

		path.join(ASTC_CODEC_DIR, "src/decoder/astc_file.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/codec.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/endpoint_codec.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/footprint.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/integer_sequence_codec.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/intermediate_astc_block.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/logical_astc_block.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/partition.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/physical_astc_block.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/quantization.*"),
		path.join(ASTC_CODEC_DIR, "src/decoder/weight_infill.*"),
	}

	configuration { "linux-*" }
		buildoptions {
			"-fPIC",
		}

	configuration {}