aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuto Ikuta <tikuta@chromium.org>2023-06-30 13:12:05 +0900
committerTakuto Ikuta <tikuta@chromium.org>2023-06-30 04:15:35 +0000
commitd7331f4ee457c4fd4a5320e0fe8a7bab2f36ddfd (patch)
treee4507c7fcedcc32836f5ef5c3cd9628816e6448c
parentaa4075f116e4312537d0d3e9dbd5e31096539f94 (diff)
downloadlibjpeg-turbo-d7331f4ee457c4fd4a5320e0fe8a7bab2f36ddfd.tar.gz
fix inputs for some included files
jdct.inc and jsimdext.inc are included some asm files. So they should be part of inputs to nasm build action. This makes nasm build runnable as remote action in our experimental build system. Bug: b/285787155 Change-Id: I120217266cade7e81975f3e7fc67ee70243dfb84
-rw-r--r--BUILD.gn11
1 files changed, 9 insertions, 2 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 524890a2..b39d2783 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -11,7 +11,9 @@ if (current_cpu == "arm" || current_cpu == "arm64") {
import("//build/config/arm.gni")
}
-assert(use_blink, "This is not used on if blink is not enabled, don't drag it in unintentionally")
+assert(
+ use_blink,
+ "This is not used if blink is not enabled, don't drag it in unintentionally")
source_set("libjpeg_headers") {
sources = [
@@ -31,6 +33,11 @@ if (current_cpu == "x86" || current_cpu == "x64") {
defines = []
include_dirs = [ "simd/nasm/" ]
+ inputs = [
+ "simd/nasm/jdct.inc",
+ "simd/nasm/jsimdext.inc",
+ ]
+
if (current_cpu == "x86") {
include_dirs += [ "simd/i386/" ]
sources = [
@@ -347,7 +354,7 @@ if (build_with_chromium) {
configs += [ "//build/config/compiler:no_chromium_code" ]
if (is_win) {
- cflags = ["-U_CRT_SECURE_NO_DEPRECATE"]
+ cflags = [ "-U_CRT_SECURE_NO_DEPRECATE" ]
}
}
}