BIG deep clean

This commit is contained in:
2020-06-10 13:14:16 +03:00
parent f579718e0b
commit c59579d5d5
222 changed files with 2392 additions and 11600 deletions

View File

@@ -10,7 +10,6 @@ file(GLOB SRC "*.cpp" "*.h")
add_executable(pip_rc ${SRC} ${_RC})
set (PIRC_LIBS pip)
target_link_libraries(pip_rc ${PIRC_LIBS})
# apple_rpath_patch(pip_rc)
if (DEFINED LIB)
install(TARGETS pip_rc DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)
else()

View File

@@ -1,3 +1,22 @@
/*
PIP - Platform Independent Primitives
Resources compiller
Ivan Pelipenko peri4ko@yandex.ru
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "parser.h"
#include "generator.h"
#include "picli.h"
@@ -36,8 +55,6 @@ int main (int argc, char * argv[]) {
return 0;
}
//piCout << "args:" << cli.rawArguments();
PIVector<ParserSection> files = parse(cli.argumentValue("input"));
if (files.isEmpty()) {
piCout << "Error: resources description file is empty";
@@ -65,7 +82,6 @@ int main (int argc, char * argv[]) {
piForeachC (PIString & _a, cli.rawArguments())
outf << "// \"" << _a << "\"\n";
outf << "\n";
//outf << "#include \"pivariant.h\"\n#include \"picodeinfo.h\"";
if (!generate(init_name, outf, files)) {
piCout << "Error: generate fail";
return 1;

View File

@@ -8,7 +8,6 @@ PIVector<ParserSection> parse(const PIString & path) {
if (!f.open(path, PIIODevice::ReadOnly))
return ret;
PIString ext = f.fileInfo().extension().toLowerCase();
//PIString fc = PIString::fromUTF8(f.readAll());
PIString dir = PIDir(f.fileInfo().dir()).absolutePath() + "/";
//piCout << dir;
if (ext == "conf") return parseConf(f, dir);
@@ -19,7 +18,6 @@ PIVector<ParserSection> parse(const PIString & path) {
ParserEntry makeEntry(PIString filename, const PIString & dir) {
ParserEntry ret;
//ret.alias = PIFile::fileInfo(filename).name();
ret.path = filename;
if (!PIDir(PIFile::fileInfo(filename).dir()).isAbsolute()) {
//piCout << "rel, add dir";