blob: afab7a14f36d2e4a15d9552fe97155773170ecc5 [file] [log] [blame]
# Copyright 2015 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("../../mojo_sdk.gni")
config("gpu_configs") {
include_dirs = [ "." ]
defines = [ "GLES2_USE_MOJO" ]
}
group("gpu") {
public_configs = [ ":gpu_configs" ]
deps = [
":MGL",
":GLES2",
"../../platform/native:mgl_thunks",
"../../platform/native:gles2",
]
}
group("gpu_onscreen") {
public_deps = [
":MGL_onscreen",
]
deps = [
":gpu",
"../../platform/native:mgl_onscreen_thunks",
]
}
mojo_sdk_source_set("MGL") {
sources = [
"MGL/mgl.h",
"MGL/mgl_types.h",
]
mojo_sdk_public_deps = [ "mojo/public/c/system" ]
}
mojo_sdk_source_set("MGL_onscreen") {
sources = [
"MGL/mgl_onscreen.h",
]
public_deps = [
":MGL",
]
}
mojo_sdk_source_set("GLES2") {
sources = [
"GLES2/gl2.h",
"GLES2/gl2ext.h",
"GLES2/gl2mojo.h",
]
public_deps = [
":KHR",
]
}
mojo_sdk_source_set("KHR") {
sources = [
"KHR/khrplatform.h",
]
}