Skip to content

Commit

Permalink
Reorganise files
Browse files Browse the repository at this point in the history
* Keep the PHP build system at the top level
* Move source files to src/
* Move the backend to src/lib
* Move assorted tools to tools/
* Remove wikidiff2.ini. I think it was just a helper for packaging, now
  unused.

Bug: T234748
Change-Id: Ib0f6db9ffb1a33e8d7e2da27b7ccf6d88e2e98aa
  • Loading branch information
tstarling committed Mar 2, 2023
1 parent 3f2e321 commit c110020
Show file tree
Hide file tree
Showing 35 changed files with 12 additions and 6 deletions.
9 changes: 8 additions & 1 deletion config.m4
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,12 @@ if test "$PHP_WIKIDIFF2" != "no"; then
PHP_SUBST(WIKIDIFF2_SHARED_LIBADD)
AC_DEFINE(HAVE_WIKIDIFF2, 1, [ ])
export CXXFLAGS="-Wno-write-strings -std=c++11 $CXXFLAGS"
PHP_NEW_EXTENSION(wikidiff2, php_wikidiff2.cpp Wikidiff2.cpp Formatter.cpp TableFormatter.cpp InlineFormatter.cpp InlineJSONFormatter.cpp TextUtil.cpp, $ext_shared)
PHP_NEW_EXTENSION(wikidiff2, \
src/php_wikidiff2.cpp \
src/lib/Wikidiff2.cpp \
src/lib/Formatter.cpp \
src/lib/TableFormatter.cpp \
src/lib/InlineFormatter.cpp \
src/lib/InlineJSONFormatter.cpp \
src/lib/TextUtil.cpp, $ext_shared)
fi
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions php_wikidiff2.cpp → src/php_wikidiff2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
#include "ext/standard/info.h"
#include "zend_API.h"
#include "php_wikidiff2.h"
#include "Wikidiff2.h"
#include "TableFormatter.h"
#include "InlineFormatter.h"
#include "InlineJSONFormatter.h"
#include "lib/Wikidiff2.h"
#include "lib/TableFormatter.h"
#include "lib/InlineFormatter.h"
#include "lib/InlineJSONFormatter.h"

#define WIKIDIFF2_VERSION_STRING "1.13.0"

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion wikidiff2.ini

This file was deleted.

0 comments on commit c110020

Please sign in to comment.