about summary refs log blame commit diff
path: root/third_party/nix/src/libmain/meson.build
blob: 052430105957bd3114634bf0a24781fdb5bc4cd4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                                                  
                    
             

                

                  


                     
                 


                      

                      













                                                
src_inc += include_directories('.')

libmain_src = files(
    join_paths(meson.source_root(), 'src/libmain/common-args.cc'),
    join_paths(meson.source_root(), 'src/libmain/shared.cc'),
    join_paths(meson.source_root(), 'src/libmain/stack.cc'))

libmain_headers = files(
    join_paths(meson.source_root(), 'src/libmain/common-args.hh'),
    join_paths(meson.source_root(), 'src/libmain/shared.hh'))

libmain_dep_list = [
    glog_dep,
    pthread_dep,
    openssl_dep,
    libsodium_dep,
]

libmain_link_list = [
    libutil_lib,
    libstore_lib,
]

libmain_link_args = []
libstore_cxx_args = []

libmain_lib = library(
    'nixmain',
    install : true,
    install_mode : 'rwxr-xr-x',
    install_dir : libdir,
    include_directories : src_inc,
    link_with : libmain_link_list,
    sources : libmain_src,
    link_args : libmain_link_args,
    dependencies : libmain_dep_list)

install_headers(
    libmain_headers,
    install_dir : join_paths(includedir, 'nix'))