Add a BUILD file for libjpeg and make it build
Change-Id: I59ee597477d63023a86c4fccd8be49e8d8ddebc0
diff --git a/third_party/libjpeg/BUILD b/third_party/libjpeg/BUILD
new file mode 100644
index 0000000..a518300
--- /dev/null
+++ b/third_party/libjpeg/BUILD
@@ -0,0 +1,69 @@
+licenses(['notice'])
+
+cc_library(
+ name = 'libjpeg',
+ visibility = ['//visibility:public'],
+ srcs = glob([
+ 'jaricom.c',
+ 'jcapimin.c',
+ 'jcapistd.c',
+ 'jcarith.c',
+ 'jccoefct.c',
+ 'jccolor.c',
+ 'jcdctmgr.c',
+ 'jchuff.c',
+ 'jcinit.c',
+ 'jcmainct.c',
+ 'jcmarker.c',
+ 'jcmaster.c',
+ 'jcomapi.c',
+ 'jcparam.c',
+ 'jcprepct.c',
+ 'jcsample.c',
+ 'jctrans.c',
+ 'jdapimin.c',
+ 'jdapistd.c',
+ 'jdarith.c',
+ 'jdatadst.c',
+ 'jdatasrc.c',
+ 'jdcoefct.c',
+ 'jdcolor.c',
+ 'jddctmgr.c',
+ 'jdhuff.c',
+ 'jdinput.c',
+ 'jdmainct.c',
+ 'jdmarker.c',
+ 'jdmaster.c',
+ 'jdmerge.c',
+ 'jdpostct.c',
+ 'jdsample.c',
+ 'jdtrans.c',
+ 'jerror.c',
+ 'jfdctflt.c',
+ 'jfdctfst.c',
+ 'jfdctint.c',
+ 'jidctflt.c',
+ 'jidctfst.c',
+ 'jidctint.c',
+ 'jquant1.c',
+ 'jquant2.c',
+ 'jutils.c',
+ 'jmemmgr.c',
+ 'jmemnobs.c',
+ ]),
+ hdrs = glob([
+ '*.h',
+ ], [
+ 'jmemdos.h',
+ 'jmemmac.h',
+ ]),
+ includes = ['src/main/c'],
+ copts = [
+ '-Wno-cast-align',
+ '-Wno-cast-qual',
+
+ '-Wno-switch-enum',
+ '-Wno-format-nonliteral',
+ '-Wno-unused-parameter',
+ ],
+)