Skip to content

Commit

Permalink
Initial import of working version 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
namralkeeg committed Oct 18, 2017
1 parent a75aba6 commit ed36418
Show file tree
Hide file tree
Showing 20 changed files with 1,747 additions and 23 deletions.
87 changes: 64 additions & 23 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,32 +1,73 @@
# Prerequisites
*.d
# This file is used to ignore files which are generated
# ----------------------------------------------------------------------------

# Compiled Object files
*.slo
*.lo
*~
*.autosave
*.a
*.core
*.moc
*.o
*.obj
*.orig
*.rej
*.so
*.so.*
*_pch.h.cpp
*_resource.rc
*.qm
.#*
*.*#
core
!core/
tags
.DS_Store
.directory
*.debug
Makefile*
*.prl
*.app
moc_*.cpp
ui_*.h
qrc_*.cpp
Thumbs.db
*.res
*.rc
/.qmake.cache
/.qmake.stash

# Precompiled Headers
*.gch
*.pch
# qtcreator generated files
*.pro.user*

# Compiled Dynamic libraries
*.so
*.dylib
*.dll
# xemacs temporary files
*.flc

# Fortran module files
*.mod
*.smod
# Vim temporary files
.*.swp

# Compiled Static libraries
*.lai
*.la
*.a
*.lib
# Visual Studio generated files
*.ib_pdb_index
*.idb
*.ilk
*.pdb
*.sln
*.suo
*.vcproj
*vcproj.*.*.user
*.ncb
*.sdf
*.opensdf
*.vcxproj
*vcxproj.*

# Executables
# MinGW generated files
*.Debug
*.Release

# Python byte code
*.pyc

# Binaries
# --------
*.dll
*.exe
*.out
*.app

93 changes: 93 additions & 0 deletions AFKPexAnon.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
TEMPLATE = app
CONFIG += console c++14
CONFIG -= app_bundle
CONFIG -= qt

############################################
## Library Source Dependencies: Boost, keeg
## Boost: http://www.boost.org
## keeg: https://github.com/namralkeeg/keeg
############################################

INCLUDEPATH += $$(BOOST_ROOT) $$(KEEG_ROOT)/src src

SOURCES += \
src/main.cpp \
src/afk/fileformats/pex/pexheader.cpp \
src/afk/fileformats/pex/pexbase.cpp \
src/afk/fileformats/pex/pexskyrim.cpp \
src/afk/fileformats/pex/pexskyrimse.cpp \
src/afk/fileformats/pex/pexfallout4.cpp \
src/afk/fileformats/pex/pexfactory.cpp \
src/afk/afkpexanon.cpp

HEADERS += \
src/version.hpp \
src/afk/fileformats/pex/gameid.hpp \
src/afk/fileformats/pex/pexheader.hpp \
src/afk/fileformats/pex/pexbase.hpp \
src/afk/fileformats/pex/pexskyrim.hpp \
src/afk/fileformats/pex/pexskyrimse.hpp \
src/afk/fileformats/pex/pexfallout4.hpp \
src/afk/fileformats/pex/pexfactory.hpp \
src/afk/afkpexanon.hpp

###############################
## Version Info
###############################

win32:VERSION = 1.1.0 # major.minor.patch
else:VERSION = 1.1.0 # major.minor.patch

# Debug/Release options
CONFIG(debug, debug|release) {
# Debug Options
win32-g++ {
LIBS += "-L$$(BOOST_LIBRARYDIR_MINGW)"
LIBS += -lboost_program_options-mgw53-mt-d-1_65_1 -lboost_filesystem-mgw53-mt-d-1_65_1 -lboost_system-mgw53-mt-d-1_65_1
}
} else {
# Release Options
win32-g++ {
LIBS += "-L$$(BOOST_LIBRARYDIR_MINGW)"
LIBS += -lboost_program_options-mgw53-mt-1_65_1 -lboost_filesystem-mgw53-mt-1_65_1 -lboost_system-mgw53-mt-1_65_1
}
}

###############################
## COMPILER SCOPES
###############################

*msvc* {
LIBS += "-L$$(BOOST_LIBRARYDIR)"

# So VCProj Filters do not flatten headers/source
CONFIG -= flat

# COMPILER FLAGS
# Optimization flags
QMAKE_CXXFLAGS_RELEASE -= /O2
QMAKE_CXXFLAGS_RELEASE *= /O2 /Ot /Ox /GL

# Multithreaded compiling for Visual Studio
QMAKE_CXXFLAGS += -MP

# Linker flags
QMAKE_LFLAGS_RELEASE += /LTCG
}

*-g++ {
# COMPILER FLAGS

# Optimization flags
QMAKE_CXXFLAGS_DEBUG -= -O0 -g
QMAKE_CXXFLAGS_DEBUG *= -Og -g3
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE *= -O3 -mfpmath=sse

# Extension flags
QMAKE_CXXFLAGS_RELEASE += -msse2 -msse

# Linker flags
QMAKE_LFLAGS_RELEASE += -static
}
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,32 @@
# AFKPexAnon
Application that anonymize's Bethesda's compiled Papyrus script files (.pex).

Copyright (c) 2017 Larry Lopez

See LICENSE file for licensing information.

Dependencies
============

* Boost 1.65.1 http://www.boost.org/
* keeg 1.0.0 https://github.com/namralkeeg/keeg
* A C++14 compiler. (for Windows you need at least Visual Studio 2015 or mingw 5.3)
* Qt Creator (qmake)


### Commandline Options
```
Generic Options:
-h [ --help ] Help Screen
-c [ --config ] arg (=afkpexanon.cfg) Use configuration file.
--version Show application version information.
Config Options:
-s [ --source ] arg (=.) Source Folder(s), defaults to current
folder.
-b [ --backup ] Enables the creation of backup Files.
-m [ --mask ] arg (=*) Character to mask computer and user
name. Defaults to *
-r [ --recursive ] Recursively process all subfolders.
--verbose Enables verbose output mode.
```
Loading

0 comments on commit ed36418

Please sign in to comment.