Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.

Build script for the expat XML parser #526

Merged
merged 1 commit into from
Nov 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions build/secondary/third_party/expat/BUILD.gn
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2013 The Flutter Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

config("expat_config") {
include_dirs = [
"expat/lib",
"//build/secondary/third_party/expat/expat_config",
]

defines = [
"XML_STATIC",
"XML_DEV_URANDOM",
]
}

static_library("expat") {
sources = [
"expat/lib/expat.h",
"expat/lib/xmlparse.c",
"expat/lib/xmlrole.c",
"expat/lib/xmltok.c",
]

public_configs = [ ":expat_config" ]
}
14 changes: 14 additions & 0 deletions build/secondary/third_party/expat/expat_config/expat_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#define BYTEORDER 1234
#define HAVE_INTTYPES_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STDINT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define STDC_HEADERS 1
#define XML_CONTEXT_BYTES 1024
#define XML_DTD 1
#define XML_NS 1