diff options
author | digit@chromium.org <digit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-10 12:38:24 +0000 |
---|---|---|
committer | digit@chromium.org <digit@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-12-10 12:38:24 +0000 |
commit | 4d49171b76da62eb845e0c01b51314799e1bc31a (patch) | |
tree | b08f05b69372ab9a98c9dd54db3805386db8ddad /net/android/java/net_errors_java.template | |
parent | 97c92b044d9499dca21c62e0981a8f4607894f96 (diff) | |
download | chromium_src-4d49171b76da62eb845e0c01b51314799e1bc31a.zip chromium_src-4d49171b76da62eb845e0c01b51314799e1bc31a.tar.gz chromium_src-4d49171b76da62eb845e0c01b51314799e1bc31a.tar.bz2 |
build/java_cpp_template.gypi: new build rules.
This patch adds a new .gypi file that allows one to generate Java source
files by parsing template files with the host C pre-processor. The main
use case is the ability to generate Java sources defining constants matching
their C/C++ counterparts.
This is actually a generalisation of the technique that was used in net/net.gyp
to generate a NetError.java source mirroring the definitions found in
net/base/net_error_list.h
BUG=none
Review URL: https://chromiumcodereview.appspot.com/11415152
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172041 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/android/java/net_errors_java.template')
-rw-r--r-- | net/android/java/net_errors_java.template | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/net/android/java/net_errors_java.template b/net/android/java/net_errors_java.template deleted file mode 100644 index f6c1661..0000000 --- a/net/android/java/net_errors_java.template +++ /dev/null @@ -1,10 +0,0 @@ -// Copyright (c) 2012 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. - -package org.chromium.net; - -public class NetError { -#define NET_ERROR(name, value) public static final int ERR_##name = value; -#include "net/base/net_error_list.h" -} |