Skip to content

Commit 50669d4

Browse files
committed
Astyle source
1 parent b37cd98 commit 50669d4

34 files changed

+3957
-17
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

astyle/build.gradle

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright 2018 Mr Duy
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
apply plugin: 'com.android.library'
18+
19+
android {
20+
compileSdkVersion rootProject.ext.compileSdkVersion
21+
buildToolsVersion rootProject.ext.buildToolsVersion
22+
23+
defaultConfig {
24+
minSdkVersion rootProject.ext.minSdkVersion
25+
targetSdkVersion rootProject.ext.targetSdkVersion
26+
}
27+
28+
buildTypes {
29+
release {
30+
minifyEnabled false
31+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
32+
}
33+
}
34+
}
35+
dependencies {
36+
testImplementation 'junit:junit:4.12'
37+
implementation fileTree(dir: 'libs', include: ['*.jar'])
38+
}
39+
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
3+
package="com.duy.astyle"
4+
android:versionCode="1"
5+
android:versionName="1.0.0">
6+
</manifest>

astyle/src/main/jni/Android.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ LOCAL_PATH:= $(call my-dir)
33
include $(CLEAR_VARS)
44
LOCAL_MODULE := astyle
55

6-
LOCAL_SRC_FILES := ASBeautifier.cpp \
7-
ASEnhancer.cpp \
8-
ASFormatter.cpp \
9-
ASLocalizer.cpp \
10-
ASResource.cpp \
11-
astyle_main.cpp
6+
LOCAL_SRC_FILES := /src/ASBeautifier.cpp \
7+
/src/ASEnhancer.cpp \
8+
/src/ASFormatter.cpp \
9+
/src/ASLocalizer.cpp \
10+
/src/ASResource.cpp \
11+
/src/astyle_main.cpp
1212

1313
LOCAL_LDLIBS := -llog
1414
LOCAL_CXX_FLAGS+=-std=c++11

astyle/src/main/jni/LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 by Jim Pattee <jimp03@email.com>.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

astyle/src/main/jni/README.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Instructions for using Artistic Style are included in the 'doc' directory.
2+
3+
The file 'install.html' contains instructions for compiling and
4+
installing Artistic Style.
5+
6+
The file 'astyle.html' contains information on using Artistic Style.
7+
8+
The files 'news.html' and 'notes.html' contain information on changes
9+
made to the various releases.

astyle/src/main/jni/doc/astyle.html

Lines changed: 2285 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)