Newer
Older
minerva / Meta / gn / secondary / Userland / Libraries / LibSystem / BUILD.gn
@minerva minerva on 13 Jul 533 bytes Initial commit
group("LibSystem") {
  deps = []
  if (current_os == "minerva") {
    deps += [
      ":system_shared",
      ":system_static",
    ]
  }
}

if (current_os == "minerva") {
  shared_library("system_shared") {
    output_name = "system"
    cflags_cc = [ "-nostdlib" ]
    ldflags = [
      "-nostdlib",
      "-static-libstdc++",
    ]
    sources = [
      "syscall.cpp",
      "syscall.h",
    ]
  }

  static_library("system_static") {
    output_name = "system"
    sources = [
      "syscall.cpp",
      "syscall.h",
    ]
  }
}