Scons build: install headers as well as libraries.
authorRalph Giles <giles@xiph.org>
Thu, 30 Oct 2008 18:27:18 +0000 (18:27 +0000)
committerRalph Giles <giles@xiph.org>
Thu, 30 Oct 2008 18:27:18 +0000 (18:27 +0000)
svn path=/trunk/theora/; revision=15473

SConstruct

index 381f307..6edd6ce 100644 (file)
@@ -73,6 +73,13 @@ encoder_x86_64_sources = """
        enc/x86_64/fdct_mmx.c
   """
 
+inst_headers = """
+       theora.h
+       theoradec.h
+       theoraenc.h
+       codec.h
+  """
+
 ## Conditional configuration machinery
 
 # Build environment
@@ -208,6 +215,9 @@ env.Alias('install', prefix)
 env.Install(lib_dir, [libtheora_a, libtheora_so])
 env.Install(lib_dir, [libtheoradec_a, libtheoradec_so])
 env.Install(lib_dir, [libtheoraenc_a, libtheoraenc_so])
+inc_dir = join(prefix, 'include')
+env.Install( join(inc_dir, 'theora'),
+  path('include/theora', Split(inst_headers)) )
 
 # example programs
 dump_video = env.Copy()