Go to the source code of this file.
Functions | |
make_Makefile_am ($tree, $path) | |
walk_src_nolinks (&$line) | |
create_templates () | |
write_template ($path, $content) | |
create_elphel353_kdevelop () | |
create_elphel353_ctags_exclusions () | |
Variables | |
$makefile_header = '#Dummy Makefile.am for Elphel camera KDevelop project' | |
$HOME_DIR = trim(shell_exec('cd ~ ; pwd')) | |
$PWD = trim(shell_exec('pwd')) | |
$TAG_FILE = "$PWD/tags" | |
$TAG_EXCLUDE_FILE = "$PWD/ctags_excludes" | |
$KDEVELOP_RC_FILE = "$HOME_DIR/.kde/share/config/kdeveloprc" | |
$PROJECT_KDEVELOP = 'elphel353.kdevelop' | |
$DOXYFILE = 'Doxyfile' | |
$REVISION = trim(shell_exec('grep "JIMAGEID =" Makefile | sed -n -e "s/JIMAGEID = //p"')) | |
$HWID = trim(shell_exec('grep "HWID =" Makefile | sed -n -e "s/HWID = //p"')) | |
$DOXYGEN_EXTENSIONS | |
$PROJECT_SOURCES = array ('c', 'cc', 'cxx','cpp', 'c++', 'C', 'CC', 'C++') | |
To create dummy Makefile.am,for files to be included in the project. Seems TODO, ..., errors only work in C-files. | |
$PROJECT_HEADERS = array ('h', 'H',) | |
$PROJECT_SCRIPTS = array ('php', 'php3', 'PHP', 'PHP3') | |
$all_installed = true | |
$list = file('src.list') | |
$list = array_filter ($list) | |
$files = array() | |
Arrange src.list file entries as a directory tree. | |
$pointer = &$files | |
$pointer = &$pointer[$path[$i]] | |
$pointer [] = $path[(count($path)-1)] | |
$kdevelop_rc_file = fopen($KDEVELOP_RC_FILE,"a") | |
else |
create_elphel353_ctags_exclusions | ( | ) |
create_elphel353_kdevelop | ( | ) |
create_templates | ( | ) |
make_Makefile_am | ( | $ | tree, | |
$ | path | |||
) |
Functions Iterate through directory structure and create Makefile.am files to show src.list files as project files in KDevelop. If Makefile.am already exists and does not have $header string it will not be modified, otherwise lines INCLUDES = METASOURCES = AUTO bin_PROGRAMS = dummy dummy_SOURCES = SUBDIRS = will be (re)generated (it is probably possible to carefully modify existent Makefile.am)
recursive
directories
other extensions
no extension
Does Makefile already exist?
recurse subdirectories
Definition at line 200 of file prep_kdevelop.php.
References $files, $i, $makefile_header, $PROJECT_HEADERS, $PROJECT_SCRIPTS, and $PROJECT_SOURCES.
walk_src_nolinks | ( | &$ | line | ) |
Definition at line 281 of file prep_kdevelop.php.
write_template | ( | $ | path, | |
$ | content | |||
) |
$all_installed = true |
Definition at line 87 of file prep_kdevelop.php.
$DOXYFILE = 'Doxyfile' |
Definition at line 51 of file prep_kdevelop.php.
$DOXYGEN_EXTENSIONS |
Initial value:
array ('c', 'cc', 'cxx','cpp', 'c++','d', 'java','ii', 'ixx', 'ipp','i++', 'inl','h', 'hh', 'hxx','hpp', 'h++','idl', 'odl','cs', 'php','php3','inc','m', 'mm', 'dox','py', 'C', 'CC', 'C++','II', 'I++','H', 'HH', 'H++','CS', 'PHP','PHP3','M', 'MM', 'PY')
Definition at line 54 of file prep_kdevelop.php.
$files = array() |
Arrange src.list file entries as a directory tree.
Definition at line 103 of file prep_kdevelop.php.
Referenced by make_Makefile_am().
$HOME_DIR = trim(shell_exec('cd ~ ; pwd')) |
Definition at line 44 of file prep_kdevelop.php.
$kdevelop_rc_file = fopen($KDEVELOP_RC_FILE,"a") |
Definition at line 144 of file prep_kdevelop.php.
$KDEVELOP_RC_FILE = "$HOME_DIR/.kde/share/config/kdeveloprc" |
Definition at line 49 of file prep_kdevelop.php.
$list = array_filter ($list) |
Definition at line 100 of file prep_kdevelop.php.
$list = file('src.list') |
Definition at line 98 of file prep_kdevelop.php.
$makefile_header = '#Dummy Makefile.am for Elphel camera KDevelop project' |
! PHP script ! FILE NAME : prep_kdevelop.php ! DESCRIPTION: Creates files to use KDevelop with Elphel camera project ! AUTHOR : Andrey Filippov ! Copyright (C) 2008 Elphel, Inc ! -----------------------------------------------------------------------------** ! ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU 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 General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see <http://www.gnu.org/licenses/>. ! -----------------------------------------------------------------------------** ! !
Definition at line 43 of file prep_kdevelop.php.
Referenced by make_Makefile_am().
$pointer[] = $path[(count($path)-1)] |
Definition at line 112 of file prep_kdevelop.php.
$pointer = &$pointer[$path[$i]] |
Definition at line 110 of file prep_kdevelop.php.
$pointer = &$files |
Definition at line 107 of file prep_kdevelop.php.
$PROJECT_HEADERS = array ('h', 'H',) |
$PROJECT_KDEVELOP = 'elphel353.kdevelop' |
Definition at line 50 of file prep_kdevelop.php.
$PROJECT_SCRIPTS = array ('php', 'php3', 'PHP', 'PHP3') |
$PROJECT_SOURCES = array ('c', 'cc', 'cxx','cpp', 'c++', 'C', 'CC', 'C++') |
To create dummy Makefile.am,for files to be included in the project. Seems TODO, ..., errors only work in C-files.
Definition at line 61 of file prep_kdevelop.php.
Referenced by make_Makefile_am().
$PWD = trim(shell_exec('pwd')) |
Definition at line 45 of file prep_kdevelop.php.
Referenced by create_elphel353_ctags_exclusions(), and create_elphel353_kdevelop().
$TAG_EXCLUDE_FILE = "$PWD/ctags_excludes" |
Definition at line 47 of file prep_kdevelop.php.
$TAG_FILE = "$PWD/tags" |
Definition at line 46 of file prep_kdevelop.php.
Definition at line 155 of file prep_kdevelop.php.