project('veil', 'c',
  version: '0.1.0',
  default_options: [
    'warning_level=2',
    'c_std=c11',
    'optimization=3',
    'b_lto=true',
    'strip=true'
  ]
)

gtk3_dep = dependency('gtk+-3.0', version: '>= 3.24')
webkit2_dep = dependency('webkit2gtk-4.1')

# Performance-optimized compiler flags
add_project_arguments(
  '-ffast-math',
  '-fomit-frame-pointer',
  '-pipe',
  language: 'c'
)

# Native CPU optimization (comment out for portable builds)
add_project_arguments(
  '-march=native',
  '-mtune=native',
  language: 'c'
)

executable('veil',
  'src/veil.c',
  dependencies: [gtk3_dep, webkit2_dep],
  install: true
)

subdir('data')
