Home | History | Annotate | Download | only in skcms
      1 # Copyright 2018 Google Inc.
      2 #
      3 # Use of this source code is governed by a BSD-style license that can be
      4 # found in the LICENSE file.
      5 
      6 config("skcms_public") {
      7   include_dirs = [ "../externals/skcms" ]
      8 }
      9 
     10 source_set("skcms") {
     11   public_configs = [ ":skcms_public" ]
     12 
     13   cflags = []
     14   if (!is_win || is_clang) {
     15     cflags += [
     16       "-w",
     17       "-std=c11",
     18     ]
     19     if (!is_clang) {
     20       # This seems to be the default in newer GCCs, but of course we test with older GCCs.
     21       cflags += [ "-flax-vector-conversions" ]
     22     }
     23   }
     24 
     25   defines = []
     26   sources = [
     27     "../externals/skcms/skcms.c",
     28   ]
     29 }
     30